-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·45 lines (40 loc) · 996 Bytes
/
Copy pathinstall.sh
File metadata and controls
executable file
·45 lines (40 loc) · 996 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/usr/bin/env bash
set -euo pipefail
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
TARGET="${1:-codex}"
CUSTOM_PATH="${2:-}"
case "$TARGET" in
codex)
DEST="${HOME}/.codex/skills/content-creation-skill"
;;
claude)
DEST=".claude/skills/content-creation-skill"
;;
cursor)
DEST=".cursor/skills/content-creation-skill"
;;
hermes)
DEST="${HOME}/.hermes/skills/content-creation-skill"
;;
custom)
if [[ -z "$CUSTOM_PATH" ]]; then
echo "custom target requires a destination root path" >&2
exit 1
fi
DEST="${CUSTOM_PATH%/}/content-creation-skill"
;;
*)
echo "unknown target: $TARGET" >&2
echo "usage: scripts/install.sh codex|claude|cursor|hermes|custom [custom-root]" >&2
exit 1
;;
esac
mkdir -p "$(dirname "$DEST")"
rm -rf "$DEST"
mkdir -p "$DEST"
rsync -a \
--exclude ".git/" \
--exclude "dist/" \
--exclude "config.json" \
"$ROOT/" "$DEST/"
echo "Installed content-creation-skill to $DEST"