From d48f84e18cd9138b9a7e7a0281f5fcdd37876e7e Mon Sep 17 00:00:00 2001 From: KOWX712 Date: Sat, 26 Oct 2024 04:32:34 +0800 Subject: [PATCH] Update UpdateTargetList.sh --- lite-script_only/UpdateTargetList.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lite-script_only/UpdateTargetList.sh b/lite-script_only/UpdateTargetList.sh index 88784a4..d798c0a 100644 --- a/lite-script_only/UpdateTargetList.sh +++ b/lite-script_only/UpdateTargetList.sh @@ -38,7 +38,7 @@ ADDITION=$(echo "$ADDITION" | tr '\n' ' ' | sed 's/^ //;s/ $//') su -c pm list packages -3 &1 | cat | awk -F: '{print $2}' | grep -Ev "$EXCLUDE" > /data/adb/tricky_store/target.txt sleep 1 -# Add extra package names if any app excluded by the script (DO NOT remove default package here) +# Add additional apps to the target file if they are not already present for app in $ADDITION; do if ! grep -qx "$app" /data/adb/tricky_store/target.txt; then echo "$app" >> /data/adb/tricky_store/target.txt