Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

Commit

Permalink
Error out of make-multiple-releases clearly if jq is not installed
Browse files Browse the repository at this point in the history
refs #187
  • Loading branch information
fredemmott committed Aug 7, 2019
1 parent 9389fcb commit 2c25390
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/make-multiple-releases-on-aws
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ if [ -z "$VERSION" ]; then
exit 1
fi

if ! which jq >/dev/null; then
echo "Install 'jq' and try again."
exit 1
fi

PAYLOAD=$(echo "$@" | jq -Rn '(input | split(" ") | { "versions": . })')
aws stepfunctions start-execution \
--state-machine-arn \
Expand Down

0 comments on commit 2c25390

Please sign in to comment.