diff --git a/tools/imx8m_image.sh b/tools/imx8m_image.sh
index 4959f9c83539faecf200779104e3b0102fd94fe4..ba6010444353acb04f80bb5b6f6affa48a8792bb 100755
--- a/tools/imx8m_image.sh
+++ b/tools/imx8m_image.sh
@@ -14,10 +14,8 @@ for f in $blobs; do
 		continue
 	fi
 
-	if [ -f $f ]; then
-		continue
-	else
-		echo "WARNING '$tmp' not found, resulting binary is not-functional" >&2
+	if [ ! -f $f ]; then
+		echo "WARNING '$f' not found, resulting binary is not-functional" >&2
 		exit 1
 	fi
 done