diff options
| author | Craig Jennings <c@cjennings.net> | 2026-06-15 19:16:27 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-06-15 19:16:27 -0500 |
| commit | e7be0deef03210b96d167cd75bbc6be374941869 (patch) | |
| tree | 97b54a38062b21ee4575ed2b3db9a5033f7b7ed5 /scripts/audit.sh | |
| parent | 1898a0d85d7da0bf05b4337a11fd1b823b5827fe (diff) | |
| download | rulesets-e7be0deef03210b96d167cd75bbc6be374941869.tar.gz rulesets-e7be0deef03210b96d167cd75bbc6be374941869.zip | |
fix(audit): exclude retired projects from the sync target list
The audit's project discovery uses find -maxdepth 3, which reaches ~/projects/.retired/<name>/.ai — one level deeper than a live project — so shelved projects were getting template syncs they should never receive. Skip any project under a .retired/ ancestor explicitly, so the exclusion holds regardless of the find depth.
Diffstat (limited to 'scripts/audit.sh')
| -rwxr-xr-x | scripts/audit.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/audit.sh b/scripts/audit.sh index 86eeb76..a7b8089 100755 --- a/scripts/audit.sh +++ b/scripts/audit.sh @@ -144,10 +144,14 @@ for proj in "${projects[@]}"; do # - the rulesets repo itself (canonical .ai/ lives at the repo root, not under a project) # - the canonical-source subdir (rulesets/claude-templates/.ai/ is the source, not a target) # - the legacy standalone claude-templates checkout (frozen during fold transition) + # - retired projects under any .retired/ ancestor (~/projects/.retired/<name>) — + # shelved, never a live sync target; nested one level deeper than live projects, + # so the maxdepth-3 find reaches them and they must be excluded explicitly case "$proj" in "$REPO") continue ;; "$REPO/claude-templates") continue ;; "$HOME/projects/claude-templates") continue ;; + */.retired/*) continue ;; esac # Display path: strip $HOME prefix to ~/, otherwise leave alone. |
