瀏覽代碼

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.
will 2 周之前
父節點
當前提交
cde3efe56f
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      update.sh

+ 2 - 2
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)"
 }