hikey: factory-images: Fix logic error am: c33285120c am: b24bb36094
am: 544393f924

Change-Id: I2cde1de4cf3977a49fb86498e37289fb12979201
diff --git a/factory-images/generate-factory-images-hikey.sh b/factory-images/generate-factory-images-hikey.sh
index f5e667e..001c0f5 100755
--- a/factory-images/generate-factory-images-hikey.sh
+++ b/factory-images/generate-factory-images-hikey.sh
@@ -19,7 +19,7 @@
 
 BUILD=eng.`whoami`
 BUILDNAME=`ls ${ANDROID_BUILD_TOP}/${PRODUCT}-img-${BUILD}.zip 2> /dev/null`
-if [ $? -eq 0 ]; then
+if [ $? -ne 0 ]; then
   VERSION=linaro-`date +"%Y.%m.%d"`
 else
   BUILDNAME=`ls ${ANDROID_BUILD_TOP}/${PRODUCT}-img-*.zip 2> /dev/null`