build: check if jq installed in init.sh (#365)

This commit is contained in:
Prajjwol Gautam 2021-07-26 23:16:16 -07:00 committed by GitHub
parent e838bfe66e
commit 0d05529461
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,6 +9,8 @@ LOGLEVEL="info"
#TRACE="--trace" #TRACE="--trace"
TRACE="" TRACE=""
# validate dependencies are installed
command -v jq > /dev/null 2>&1 || { echo >&2 "jq not installed. More info: https://stedolan.github.io/jq/download/"; exit 1; }
# remove existing daemon and client # remove existing daemon and client
rm -rf ~/.ethermintd* rm -rf ~/.ethermintd*