Skip to content

Commit f425b57

Browse files
compiler-errorsoli-obk
authored andcommitted
Fix jq in CI
1 parent b76caa1 commit f425b57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ci/scripts/setup-environment.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ source "$(cd "$(dirname "$0")" && pwd)/../shared.sh"
1010

1111
# Load extra environment variables
1212
vars="${EXTRA_VARIABLES-}"
13-
echo "${vars}" | jq '' >/dev/null # Validate JSON and exit on errors
13+
echo "${vars}" | jq '.' >/dev/null # Validate JSON and exit on errors
1414
for key in $(echo "${vars}" | jq "keys[]" -r); do
1515
# On Windows, for whatever reason, $key contains the BOM character in it,
1616
# and that messes up `jq ".${key}"`. This line strips the BOM from the key.

0 commit comments

Comments
 (0)