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
This commit is contained in:
parent
4dd3f55407
commit
023dbc6cb5
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user