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

Change-Id: I0199e0577c4130c80c8249ebdb34a57345877964
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`