فهرست منبع

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
         else
             failed=$((failed + 1))
             failed=$((failed + 1))
         fi
         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
     # Update TypeScript files
     while IFS= read -r -d '' file; do
     while IFS= read -r -d '' file; do
@@ -260,7 +260,7 @@ update_all_components() {
         else
         else
             failed=$((failed + 1))
             failed=$((failed + 1))
         fi
         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)"
     print_info "Updated: $updated file(s), failed: $failed file(s)"
 }
 }