-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·32 lines (26 loc) · 1.11 KB
/
Copy pathinstall.sh
File metadata and controls
executable file
·32 lines (26 loc) · 1.11 KB
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
#!/usr/bin/env bash
set -euo pipefail
# ─────────────────────────────────────────────────────────────
# Eagle Skills — Quick installer
# curl -fsSL https://raw.githubusercontent.com/eagleisbatman/eagle-skills/main/install.sh | bash
# ─────────────────────────────────────────────────────────────
REPO_URL="https://github.com/eagleisbatman/eagle-skills.git"
INSTALL_DIR="${EAGLE_SKILLS_DIR:-$HOME/.eagle-skills}"
echo ""
echo " Eagle Skills — installer"
echo ""
# Check git
if ! command -v git &>/dev/null; then
echo " Error: git is required but not installed."
exit 1
fi
# Clone or update
if [ -d "$INSTALL_DIR/.git" ]; then
echo " Updating existing installation..."
git -C "$INSTALL_DIR" pull --quiet
else
echo " Cloning to $INSTALL_DIR..."
git clone --quiet "$REPO_URL" "$INSTALL_DIR"
fi
# Run the full CLI installer
exec "$INSTALL_DIR/bin/eagle-skills" install "$@"