From ab41eaa5d9246d693c99263302b07ae704bc4d51 Mon Sep 17 00:00:00 2001 From: rsp2k Date: Thu, 7 Oct 2021 11:12:35 -0600 Subject: [PATCH] Add friendly message/exit when jq isn't available --- build-latest.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/build-latest.sh b/build-latest.sh index 3ddb607..f444a69 100755 --- a/build-latest.sh +++ b/build-latest.sh @@ -6,9 +6,8 @@ echo "▶️ $0 $*" ### # Check for the jq library needed for parsing JSON ### -if [ ! command -v jq &> /dev/null ] -then - echo "⚠️ PRERELEASE must be either unset, 'true' or 'false', but was '${PRERELEASE}'!" +if ! command -v jq; then + echo "⚠️ jq command missing from \$PATH!" exit 1 fi