Skip to content

Commit

Permalink
Update installer to check for jq
Browse files Browse the repository at this point in the history
  • Loading branch information
Layoric committed Nov 20, 2024
1 parent 17267f1 commit 4b14a7b
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,18 @@ check_prerequisites() {
exit 1
fi

log "Prerequisites check passed. Docker and Docker Compose are installed."
# Check if jq is installed, install if not present
if ! command -v jq &> /dev/null; then
log "jq is not installed. Installing jq..."
sudo apt-get update && sudo apt-get install -y jq
if ! command -v jq &> /dev/null; then
echo "Failed to install jq. Please install it manually."
exit 1
fi
log "jq has been successfully installed."
fi

log "Prerequisites check passed. Docker, Docker Compose, and jq are installed."
}

install_gum() {
Expand Down

0 comments on commit 4b14a7b

Please sign in to comment.