mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-30 13:35:27 +00:00
Use ZIPFILE instead of ZIP
The tool zip reads , we don't want it
This commit is contained in:
parent
2f2108e4e8
commit
a199b0ace1
@ -30,7 +30,7 @@ imageless_magisk() {
|
|||||||
##########################################################################################
|
##########################################################################################
|
||||||
|
|
||||||
OUTFD=$2
|
OUTFD=$2
|
||||||
ZIP=$3
|
ZIPFILE=$3
|
||||||
|
|
||||||
mount /data 2>/dev/null
|
mount /data 2>/dev/null
|
||||||
|
|
||||||
@ -59,7 +59,7 @@ $BOOTMODE && boot_actions || recovery_actions
|
|||||||
##########################################################################################
|
##########################################################################################
|
||||||
|
|
||||||
# Extract common files
|
# 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!"
|
[ ! -f $TMPDIR/install.sh ] && abort "! Unable to extract zip file!"
|
||||||
# Load install script
|
# Load install script
|
||||||
@ -71,7 +71,7 @@ if imageless_magisk; then
|
|||||||
else
|
else
|
||||||
$BOOTMODE && IMGNAME=magisk_merge.img || IMGNAME=magisk.img
|
$BOOTMODE && IMGNAME=magisk_merge.img || IMGNAME=magisk.img
|
||||||
IMG=$NVBASE/$IMGNAME
|
IMG=$NVBASE/$IMGNAME
|
||||||
request_zip_size_check "$ZIP"
|
request_zip_size_check "$ZIPFILE"
|
||||||
mount_magisk_img
|
mount_magisk_img
|
||||||
MODULEROOT=$MOUNTPATH
|
MODULEROOT=$MOUNTPATH
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user