Skip to content

Commit 9d32ba3

Browse files
committed
Auto merge of rust-lang#116147 - compiler-errors:jq, r=dtolnay
Fix jq in CI r? `@Mark-Simulacrum`
2 parents af68593 + 2ffef39 commit 9d32ba3

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)