From d3939e3b948f09b4c4862ba20725f464acaa703f Mon Sep 17 00:00:00 2001 From: KaySar12 Date: Tue, 15 Apr 2025 08:29:16 +0700 Subject: [PATCH] update --- scripts/clean_up_addons.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/clean_up_addons.sh b/scripts/clean_up_addons.sh index 8ac385d..bd7645e 100644 --- a/scripts/clean_up_addons.sh +++ b/scripts/clean_up_addons.sh @@ -33,14 +33,14 @@ check_protected_items() { # Use find to check if any files match the pattern if find "$root_dir" -path "$search_path" 2>/dev/null | grep -q .; then - echo "Error: Protected pattern '$pattern' matches files in '$root_dir'. Aborting execution." - exit 1 + echo "Warning: Protected pattern '$pattern' matches files in '$root_dir'. Skipping..." + continue fi else # Exact match for non-wildcard entries if [ -e "$root_dir/$pattern" ]; then - echo "Error: Protected item '$pattern' found in '$root_dir'. Aborting execution." - exit 1 + echo "Warning: Protected item '$pattern' found in '$root_dir'. Skipping..." + continue fi fi done < "$PROTECTED_LIST"