Skip to content

Commit 3b60735

Browse files
kylemclarenclaude
andcommitted
Fix: install jq dependency if missing
sprite-env requires jq for service management 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent ac4748a commit 3b60735

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

install.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,22 @@ is_sprite() {
4343
[ -S "/.sprite/api.sock" ]
4444
}
4545

46+
# Install dependencies
47+
install_deps() {
48+
if ! command -v jq &> /dev/null; then
49+
info "Installing jq..."
50+
if command -v apt-get &> /dev/null; then
51+
sudo apt-get update -qq && sudo apt-get install -y -qq jq
52+
elif command -v yum &> /dev/null; then
53+
sudo yum install -y -q jq
54+
elif command -v brew &> /dev/null; then
55+
brew install jq
56+
else
57+
warn "Could not install jq automatically"
58+
fi
59+
fi
60+
}
61+
4662
# Install Tailscale if not present
4763
install_tailscale() {
4864
if command -v tailscale &> /dev/null; then
@@ -202,6 +218,7 @@ main() {
202218
echo ""
203219

204220
detect_platform
221+
install_deps
205222
install_tailscale
206223
start_tailscaled
207224
auth_tailscale

0 commit comments

Comments
 (0)