Fix error when checking CYANOGEN_NIGHTLY.
diff --git a/tools/squisher b/tools/squisher
index 797ccdc..190d4f7 100755
--- a/tools/squisher
+++ b/tools/squisher
@@ -130,11 +130,11 @@
# Determine what to name the new signed package
if [ -z "$CYANOGEN_NIGHTLY" ]; then
- OUTFILE=$OUT/update-squished.zip
-else
MODVERSION=`sed -n -e'/ro\.modversion/s/^.*CyanogenMod-//p' $REPACK/ota/system/build.prop`
: ${MODVERSION:=nightly}
OUTFILE=$OUT/update-cm-$MODVERSION-signed.zip
+else
+ OUTFILE=$OUT/update-squished.zip
fi
# Pack it up and sign