-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathquickstart.sh
More file actions
executable file
·55 lines (49 loc) · 1.87 KB
/
quickstart.sh
File metadata and controls
executable file
·55 lines (49 loc) · 1.87 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/usr/bin/env bash
set -euo pipefail
SKILL_REPO="DUBSOpenHub/havoc-hackathon"
SKILL_NAME="havoc-hackathon"
SKILL_DIR="$HOME/.copilot/skills/$SKILL_NAME"
SKILL_URL="https://raw.githubusercontent.com/$SKILL_REPO/main/skills/$SKILL_NAME/SKILL.md"
echo ""
echo "🏟️ Havoc Hackathon"
echo "─────────────────────────────────────────"
if command -v copilot >/dev/null 2>&1; then
echo "✅ Copilot CLI already installed ($(copilot --version 2>/dev/null || echo 'installed'))"
else
echo "📦 Installing GitHub Copilot CLI..."
if [[ "$(uname)" == "Darwin" ]] || [[ "$(uname)" == "Linux" ]]; then
if command -v brew >/dev/null 2>&1; then
brew install copilot-cli
else
curl -fsSL https://gh.io/copilot-install | bash
fi
else
echo "⚠️ Windows detected — please install manually:"
echo " winget install GitHub.Copilot"
echo " Then re-run this script."
exit 1
fi
if ! command -v copilot >/dev/null 2>&1; then
export PATH="$HOME/.local/bin:$PATH"
if ! command -v copilot >/dev/null 2>&1; then
echo "❌ Installation failed. Try manually: brew install copilot-cli"
exit 1
fi
fi
echo "✅ Copilot CLI installed!"
fi
echo "📥 Adding Havoc Hackathon skill..."
mkdir -p "$SKILL_DIR"
if curl -fsSL "$SKILL_URL" -o "$SKILL_DIR/SKILL.md"; then
echo "✅ Skill installed to $SKILL_DIR"
else
echo "❌ Failed to download skill. Check your internet connection."
exit 1
fi
echo ""
echo "─────────────────────────────────────────"
echo "🏟️ Launching Copilot CLI..."
echo " Just type: run hackathon"
echo "─────────────────────────────────────────"
echo ""
exec copilot < /dev/tty