Skip to content

Commit 1a5289f

Browse files
committed
docs(git-workflow): sort the skill-dir glob by version
Plain 'tail -1' takes the lexicographically last path, which picks 1.9.0 over 1.10.0. Verified against a synthetic cache holding both. Signed-off-by: Sebastian Mendel <info@sebastianmendel.de>
1 parent 57d97eb commit 1a5289f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

skills/git-workflow/references/pull-request-workflow.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@ inspection, so a relative `./scripts/…` misses. Bind the skill directory once,
1717
then call it by that path:
1818

1919
```bash
20+
# sort -V, not plain sort: 1.10.0 must beat 1.9.0. A directly installed
21+
# skill sorts after the cache paths and so wins when both exist.
2022
GW=$(ls -d ~/.claude/skills/git-workflow \
2123
~/.claude/plugins/cache/*/git-workflow/*/skills/git-workflow \
22-
2>/dev/null | tail -1)
24+
2>/dev/null | sort -V | tail -1)
2325

2426
bash "$GW/scripts/pr-status.sh" -R owner/repo 123 # human summary + NEXT action
2527
bash "$GW/scripts/pr-status.sh" -R owner/repo 123 --json # for scripts and merge drivers

0 commit comments

Comments
 (0)