Skip to content
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