Skip to content

Commit cde3efe

Browse files
authored
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.
1 parent 38a80cf commit cde3efe

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

update.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ update_all_components() {
242242
else
243243
failed=$((failed + 1))
244244
fi
245-
done < <(find "$install_dir" -name "*.md" -type f -print0)
245+
done < <(find "$install_dir" -name "*.md" -type f -not -path "*/node_modules/*" -print0)
246246

247247
# Update TypeScript files
248248
while IFS= read -r -d '' file; do
@@ -260,7 +260,7 @@ update_all_components() {
260260
else
261261
failed=$((failed + 1))
262262
fi
263-
done < <(find "$install_dir" -name "*.sh" -type f -print0)
263+
done < <(find "$install_dir" -name "*.sh" -type f -not -path "*/node_modules/*" -print0)
264264

265265
print_info "Updated: $updated file(s), failed: $failed file(s)"
266266
}

0 commit comments

Comments
 (0)