Exclude META-INF in unzip

This commit is contained in:
topjohnwu 2019-12-28 02:33:35 +08:00
parent 7fa2625a03
commit 025b060506

View File

@ -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