This commit is contained in:
genisis0x 2026-07-14 19:16:59 -07:00 committed by GitHub
commit b83c2c1fa3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 12 additions and 0 deletions

12
setup
View File

@ -577,6 +577,18 @@ link_claude_skill_dirs() {
if [ -e "$target/sections" ] || [ -L "$target/sections" ]; then rm -rf "$target/sections"; fi
_link_or_copy "$gstack_dir/$dir_name/sections" "$target/sections"
fi
# Also link bin/ when the source skill ships one. PreToolUse hook
# frontmatter references $CLAUDE_SKILL_DIR/bin/<script>; without
# this link those paths resolve to a non-existent target and the
# hook silently no-ops (issue #1459). Same fix applies to every
# skill that publishes scripts -- freeze, careful, browse, etc.
# Routes through _link_or_copy so Windows installs without
# Developer Mode get a directory copy instead of a frozen symlink.
if [ -d "$gstack_dir/$dir_name/bin" ]; then
if [ -L "$target/bin" ]; then rm "$target/bin"; fi
if [ -e "$target/bin" ] && [ ! -L "$target/bin" ]; then rm -rf "$target/bin"; fi
_link_or_copy "$gstack_dir/$dir_name/bin" "$target/bin"
fi
linked+=("$link_name")
fi
done