diff options
| author | Craig Jennings <c@cjennings.net> | 2026-06-30 12:51:31 -0400 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-06-30 12:51:31 -0400 |
| commit | a266250c1e24c9b2f6f246206c1b726dbb84c4bf (patch) | |
| tree | 9215e2988771f5a97d5f3cd9b3ee9c2aa1346f55 /Makefile | |
| parent | e4aeea6cb3fdd24fcaebd9f882045f30a88656c4 (diff) | |
| download | rulesets-a266250c1e24c9b2f6f246206c1b726dbb84c4bf.tar.gz rulesets-a266250c1e24c9b2f6f246206c1b726dbb84c4bf.zip | |
chore: prune dangling bin symlinks, point paging at signal-mcp
The install bin loop linked every script under claude-templates/bin but never pruned orphans, so a deleted script left a dangling ~/.local/bin symlink. page-signal hit exactly this: the wrapper was removed 2026-06-12 but its symlink stayed, resolving to a dead target on the daily drivers. I added a prune step that drops symlinks pointing into claude-templates/bin whose target is gone, so any removed script self-cleans on the next install.
I also added a protocols section naming the two paging channels: notify --persist at the machine, and the signal-mcp send_message_to_user tool when away from it. The pager account was never deregistered (only the page-signal script went away), so the live path is the MCP tool, and the section retires the script for good.
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -255,6 +255,15 @@ install: ## Symlink skills, rules, config, hooks, and bin scripts into place echo " link $$name → $(LOCAL_BIN)/$$name"; \ fi \ done + @for link in "$(LOCAL_BIN)"/*; do \ + [ -L "$$link" ] || continue; \ + target=$$(readlink "$$link"); \ + case "$$target" in "$(CURDIR)/claude-templates/bin/"*) ;; *) continue ;; esac; \ + if [ ! -e "$$target" ]; then \ + rm "$$link"; \ + echo " prune $$(basename "$$link") (dangling → $$target)"; \ + fi \ + done @echo "" @echo "done" |
