Skip to content

Commit

Permalink
Modified the cluster script to log message when jq is not installed (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
rachit77 committed Jun 20, 2023
1 parent de084a9 commit d69fff4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/cluster
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
#!/usr/bin/env bash

# Check if jq is installed
if [[ "$1" == "polybft" ]] && ! command -v jq >/dev/null 2>&1; then
echo "jq is not installed. Please install it manually and run the script again."
echo "Manual installation instructions: Visit https://jqlang.github.io/jq/ for more information."
exit 1
fi

function initIbftConsensus() {
echo "Running with ibft consensus"
./polygon-edge secrets init --insecure --data-dir test-chain- --num 4
Expand Down

0 comments on commit d69fff4

Please sign in to comment.