Skip to content

Commit ab41eaa

Browse files
rsp2ktobiasge
authored andcommitted
Add friendly message/exit when jq isn't available
1 parent 02794f3 commit ab41eaa

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

build-latest.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@ echo "▶️ $0 $*"
66
###
77
# Check for the jq library needed for parsing JSON
88
###
9-
if [ ! command -v jq &> /dev/null ]
10-
then
11-
echo "⚠️ PRERELEASE must be either unset, 'true' or 'false', but was '${PRERELEASE}'!"
9+
if ! command -v jq; then
10+
echo "⚠️ jq command missing from \$PATH!"
1211
exit 1
1312
fi
1413

0 commit comments

Comments
 (0)