From cde3efe56f55b47396e8d1afa313993ad657c843 Mon Sep 17 00:00:00 2001 From: will <128361589+zhao0112@users.noreply.github.com> Date: Wed, 15 Jul 2026 07:52:54 +0800 Subject: [PATCH] fix: skip node_modules in updater markdown and shell scans (#309) update.sh's .md and .sh scan loops lacked the -not -path "*/node_modules/*" exclusion that the .ts loop already had, causing spurious update failures for third-party node_modules files that aren't OAC-managed. Brings all three loops in line. Verified the exclusion filters nested node_modules at any depth, not just top-level, and no tracked files live under any node_modules/ path. Fixes #308. --- update.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/update.sh b/update.sh index 82d391c..3b1967c 100755 --- a/update.sh +++ b/update.sh @@ -242,7 +242,7 @@ update_all_components() { else failed=$((failed + 1)) fi - done < <(find "$install_dir" -name "*.md" -type f -print0) + done < <(find "$install_dir" -name "*.md" -type f -not -path "*/node_modules/*" -print0) # Update TypeScript files while IFS= read -r -d '' file; do @@ -260,7 +260,7 @@ update_all_components() { else failed=$((failed + 1)) fi - done < <(find "$install_dir" -name "*.sh" -type f -print0) + done < <(find "$install_dir" -name "*.sh" -type f -not -path "*/node_modules/*" -print0) print_info "Updated: $updated file(s), failed: $failed file(s)" }