mirror of https://github.com/garrytan/gstack.git
fix
This commit is contained in:
parent
bc8f45a627
commit
6a9257715b
|
|
@ -6,12 +6,10 @@ SKILL_DIR="$HOME/.claude/skills"
|
||||||
|
|
||||||
mkdir -p "$SKILL_DIR"
|
mkdir -p "$SKILL_DIR"
|
||||||
|
|
||||||
project_name="$(basename "$REPO_ROOT")"
|
target="$SKILL_DIR"
|
||||||
target="$SKILL_DIR/$project_name"
|
|
||||||
|
|
||||||
# Ensure target exists, then copy repo contents over it without deleting extras.
|
# Copy repo contents into ~/.claude/skills without deleting existing files.
|
||||||
mkdir -p "$target"
|
|
||||||
cp -a "$REPO_ROOT"/. "$target"/
|
cp -a "$REPO_ROOT"/. "$target"/
|
||||||
|
|
||||||
echo "Skill directory: $SKILL_DIR"
|
echo "Skill directory: $SKILL_DIR"
|
||||||
echo "Copied project: $project_name -> $target"
|
echo "Copied project root into: $target"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue