Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(spartan): making the spartan script install jq #11231

Merged
merged 1 commit into from
Jan 15, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions spartan/releases/create-spartan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,19 @@ else
echo -e "${RED}✗ Failed to download aztec-spartan.sh${NC}"
exit 1
fi

# Check if jq is installed
if ! command -v jq &> /dev/null; then
echo "jq is not installed. Installing jq..."
if command -v apt-get &> /dev/null; then
sudo apt-get update && sudo apt-get install -y jq
elif command -v yum &> /dev/null; then
sudo yum install -y jq
elif command -v brew &> /dev/null; then
brew install jq
else
echo -e "${RED}✗ Could not install jq. Please install it manually.${NC}"
exit 1
fi
echo -e "${GREEN}✓ jq has been installed${NC}"
fi
Loading