Skip to content

Commit

Permalink
Use docker image for jq if command isn't available
Browse files Browse the repository at this point in the history
  • Loading branch information
sbellem committed Jan 20, 2024
1 parent 2499cf2 commit 3f33689
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion hacking/scripts/start_node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,11 @@ echo "*************************************************************************"

printf "\nNode 2 status info:\n"

docker compose exec localsecret-2 secretd status | jq .ValidatorInfo
if command -v jq &> /dev/null
then
jq_cmd="jq"
else
jq_cmd="docker run -i --rm ghcr.io/jqlang/jq"
fi

docker compose exec localsecret-2 secretd status | ${jq_cmd} .ValidatorInfo

0 comments on commit 3f33689

Please sign in to comment.