Skip to content

Commit 518bf28

Browse files
committed
Check for jq build script dependency in build.sh
1 parent b43e71c commit 518bf28

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

build.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ export LC_ALL=C.UTF-8
1919
[ -v CI_TOOLS_PATH ] && [ -d "$CI_TOOLS_PATH" ] \
2020
|| { echo "Invalid build environment: Environment variable 'CI_TOOLS_PATH' not set or invalid" >&2; exit 1; }
2121

22+
[ -x "$(which jq 2>/dev/null)" ] \
23+
|| { echo "Missing build script dependency: jq" >&2; exit 1; }
24+
2225
source "$CI_TOOLS_PATH/helper/common.sh.inc"
2326
source "$CI_TOOLS_PATH/helper/common-traps.sh.inc"
2427
source "$CI_TOOLS_PATH/helper/container.sh.inc"

0 commit comments

Comments
 (0)