From a199b0ace1f8915bd00f37ed8a59115225789319 Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Sat, 23 Mar 2019 20:49:16 -0400 Subject: [PATCH] Use ZIPFILE instead of ZIP The tool zip reads , we don't want it --- scripts/module_installer.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/module_installer.sh b/scripts/module_installer.sh index 3f6939d68..c21659057 100644 --- a/scripts/module_installer.sh +++ b/scripts/module_installer.sh @@ -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