mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-23 18:15:30 +00:00
Exclude META-INF in unzip
This commit is contained in:
parent
7fa2625a03
commit
025b060506
@ -123,7 +123,7 @@ else
|
||||
print_modname
|
||||
|
||||
ui_print "- Extracting module files"
|
||||
unzip -o "$ZIPFILE" -d $MODPATH >&2
|
||||
unzip -o "$ZIPFILE" -x 'META-INF/*' -d $MODPATH >&2
|
||||
|
||||
# Default permissions
|
||||
set_perm_recursive $MODPATH 0 0 0755 0644
|
||||
@ -155,8 +155,7 @@ fi
|
||||
# Remove stuffs that don't belong to modules
|
||||
rm -rf \
|
||||
$MODPATH/system/placeholder $MODPATH/customize.sh \
|
||||
$MODPATH/META-INF $MODPATH/README.md $MODPATH/.git* \
|
||||
2>/dev/null
|
||||
$MODPATH/README.md $MODPATH/.git* 2>/dev/null
|
||||
|
||||
##############
|
||||
# Finalizing
|
||||
|
Loading…
Reference in New Issue
Block a user