We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa64d44 commit e6a77d8Copy full SHA for e6a77d8
scripts/util_functions.sh
@@ -586,11 +586,8 @@ copy_preinit_files() {
586
done > $PREINITDIR/sepolicy.rule
587
588
# Copy all enabled rc
589
- find "$PREINITDIR" -mindepth 1 -type d 2>/dev/null | while read -r dir; do
590
- rm -rf "${dir:?}"
591
- done
592
- for d in /data/adb/modules*/*; do
593
- local MODDIR=${d%/*}
+ find "$PREINITDIR/" -mindepth 1 -maxdepth 1 -type d -exec rm -rf {} \;
+ find /data/adb/modules* -mindepth 1 -maxdepth 1 -type d 2>/dev/null | while read -r MODDIR; do
594
local MODID=$(basename "$MODDIR")
595
[ -f "$MODDIR"/disable ] && continue
596
[ -f "$MODDIR"/remove ] && continue
0 commit comments