-
Notifications
You must be signed in to change notification settings - Fork 88
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·96 lines (78 loc) · 2.67 KB
/
install.sh
File metadata and controls
executable file
·96 lines (78 loc) · 2.67 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#!/bin/bash
set -e
# Colors for output
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
RED='\033[0;31m'
NC='\033[0m' # No Color
INSTALL_DIR="${INSTALL_DIR:-$HOME/.local/bin}"
BINARY_NAME="continuous-claude"
REPO_URL="https://raw.githubusercontent.com/AnandChowdhary/continuous-claude/main"
echo "🔂 Installing Continuous Claude..."
# Create install directory if it doesn't exist
mkdir -p "$INSTALL_DIR"
# Download the script
echo "📥 Downloading $BINARY_NAME..."
if ! curl -fsSL "$REPO_URL/continuous_claude.sh" -o "$INSTALL_DIR/$BINARY_NAME"; then
echo -e "${RED}❌ Failed to download $BINARY_NAME${NC}" >&2
exit 1
fi
# Make it executable
chmod +x "$INSTALL_DIR/$BINARY_NAME"
echo -e "${GREEN}✅ $BINARY_NAME installed to $INSTALL_DIR/$BINARY_NAME${NC}"
# Check if install directory is in PATH
if [[ ":$PATH:" != *":$INSTALL_DIR:"* ]]; then
echo -e "${YELLOW}⚠️ Warning: $INSTALL_DIR is not in your PATH${NC}"
echo ""
echo "To add it to your PATH, add this line to your shell profile:"
echo ""
# Detect shell
if [[ "$SHELL" == *"zsh"* ]]; then
echo " echo 'export PATH=\"\$HOME/.local/bin:\$PATH\"' >> ~/.zshrc"
echo " source ~/.zshrc"
elif [[ "$SHELL" == *"bash"* ]]; then
echo " echo 'export PATH=\"\$HOME/.local/bin:\$PATH\"' >> ~/.bashrc"
echo " source ~/.bashrc"
else
echo " export PATH=\"\$HOME/.local/bin:\$PATH\""
fi
echo ""
fi
# Check for dependencies
echo ""
echo "🔍 Checking dependencies..."
missing_deps=()
if ! command -v claude &> /dev/null; then
missing_deps+=("Claude Code CLI")
fi
if ! command -v gh &> /dev/null; then
missing_deps+=("GitHub CLI")
fi
if ! command -v jq &> /dev/null; then
missing_deps+=("jq")
fi
if [ ${#missing_deps[@]} -eq 0 ]; then
echo -e "${GREEN}✅ All dependencies installed${NC}"
else
echo -e "${YELLOW}⚠️ Missing dependencies:${NC}"
for dep in "${missing_deps[@]}"; do
echo " - $dep"
done
echo ""
echo "Install them with:"
if [[ "$OSTYPE" == "darwin"* ]]; then
echo " brew install gh jq"
echo " brew install --cask claude-code"
elif [[ "$OSTYPE" == "linux-gnu"* ]]; then
echo " # Install GitHub CLI: https://github.com/cli/cli#installation"
echo " sudo apt-get install jq # or equivalent for your distro"
echo " # Install Claude Code CLI: https://code.claude.com"
fi
fi
echo ""
echo -e "${GREEN}🎉 Installation complete!${NC}"
echo ""
echo "Get started with:"
echo " $BINARY_NAME --prompt \"your task\" --max-runs 5 --owner YourGitHubUser --repo your-repo"
echo ""
echo "For more information, visit: https://github.com/AnandChowdhary/continuous-claude"