Skip to content

Commit

Permalink
refactor: restructure check on jq availability
Browse files Browse the repository at this point in the history
  • Loading branch information
amusingaxl committed Jun 20, 2023
1 parent 2af4981 commit a037867
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions scripts/diff-deployed-dssspell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,7 @@

set -e

if ! command -v jq &> /dev/null
then
echo '`jq` command could not be found. Please install it: https://github.com/stedolan/jq'
exit
fi

command -v jq &> /dev/null || { echo '`jq` command could not be found. Please install it: https://github.com/stedolan/jq'; exit 1; }
[[ "$ETHERSCAN_API_KEY" ]] || { echo -e "Please set ETHERSCAN_API_KEY"; exit 1; }

if [[ "$1" =~ ^0x[0-9a-fA-F]{40}$ ]]; then
Expand Down

0 comments on commit a037867

Please sign in to comment.