mirror of https://github.com/garrytan/gstack.git
Merge 2be16c4f3f into a3259400a3
This commit is contained in:
commit
b83c2c1fa3
12
setup
12
setup
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue