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