Skip to content

Commit 02794f3

Browse files
rsp2ktobiasge
authored andcommitted
Add friendly check for jq
1 parent 68401ca commit 02794f3

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

build-latest.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@
33

44
echo "▶️ $0 $*"
55

6+
###
7+
# Check for the jq library needed for parsing JSON
8+
###
9+
if [ ! command -v jq &> /dev/null ]
10+
then
11+
echo "⚠️ PRERELEASE must be either unset, 'true' or 'false', but was '${PRERELEASE}'!"
12+
exit 1
13+
fi
14+
615
###
716
# Checking for the presence of GITHUB_OAUTH_CLIENT_ID
817
# and GITHUB_OAUTH_CLIENT_SECRET

0 commit comments

Comments
 (0)