Skip to content

Commit 712b858

Browse files
skip repatching duplicate files
if the same file was found in /vendor and /system/vendor it will be patched twice this is in itself not any problem, it just is a bit faster and nicer to not do the same work twice
1 parent eda8083 commit 712b858

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

magiskmodule/customize.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ AUDIO_EFFECTS_FILES="$( \
8585
for ORIGINAL_FILE in $AUDIO_EFFECTS_FILES; do
8686
ui_print " Patching $ORIGINAL_FILE"
8787
FILE="$MODPATH"/"$(echo "$ORIGINAL_FILE" | sed -e 's|^/system/|/|g' -e 's|^/|/system/|')"
88+
[ -f "$FILE" ] && continue
8889
mkdir -p "$(dirname $FILE)"
8990
ORIGINAL_FILE="$SEARCH_ROOT"/"$ORIGINAL_FILE"
9091
case "$FILE" in

0 commit comments

Comments
 (0)