Use ZIPFILE instead of ZIP

The tool zip reads , we don't want it
This commit is contained in:
topjohnwu 2019-03-23 20:49:16 -04:00
parent 2f2108e4e8
commit a199b0ace1

View File

@ -30,7 +30,7 @@ imageless_magisk() {
##########################################################################################
OUTFD=$2
ZIP=$3
ZIPFILE=$3
mount /data 2>/dev/null
@ -59,7 +59,7 @@ $BOOTMODE && boot_actions || recovery_actions
##########################################################################################
# Extract common files
unzip -oj "$ZIP" module.prop install.sh uninstall.sh 'common/*' -d $TMPDIR >&2
unzip -oj "$ZIPFILE" module.prop install.sh uninstall.sh 'common/*' -d $TMPDIR >&2
[ ! -f $TMPDIR/install.sh ] && abort "! Unable to extract zip file!"
# Load install script
@ -71,7 +71,7 @@ if imageless_magisk; then
else
$BOOTMODE && IMGNAME=magisk_merge.img || IMGNAME=magisk.img
IMG=$NVBASE/$IMGNAME
request_zip_size_check "$ZIP"
request_zip_size_check "$ZIPFILE"
mount_magisk_img
MODULEROOT=$MOUNTPATH
fi