Commit 023dbc6c authored by osm0sis's avatar osm0sis Committed by John Wu

scripts: fix empty module cleanup

- should be sufficient for all basic modules, see https://github.com/topjohnwu/Magisk/issues/3119#issuecomment-704000783 for ideas for fixing it further on the daemon module-processing side

Fixes #3119
parent 4dd3f554
...@@ -753,10 +753,11 @@ install_module() { ...@@ -753,10 +753,11 @@ install_module() {
copy_sepolicy_rules copy_sepolicy_rules
fi fi
# Remove stuffs that don't belong to modules # Remove stuff that doesn't belong to modules and clean up any empty directories
rm -rf \ rm -rf \
$MODPATH/system/placeholder $MODPATH/customize.sh \ $MODPATH/system/placeholder $MODPATH/customize.sh \
$MODPATH/README.md $MODPATH/.git* $MODPATH/README.md $MODPATH/.git*
rmdir -p $MODPATH
cd / cd /
$BOOTMODE || recovery_cleanup $BOOTMODE || recovery_cleanup
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment