Auto merge of #116147 - compiler-errors:jq, r=dtolnay

Fix jq in CI

r? `@Mark-Simulacrum`
This commit is contained in:
bors 2023-09-25 14:42:27 +00:00
commit 9d32ba3a72

View File

@ -10,7 +10,7 @@ source "$(cd "$(dirname "$0")" && pwd)/../shared.sh"
# Load extra environment variables
vars="${EXTRA_VARIABLES-}"
echo "${vars}" | jq '' >/dev/null # Validate JSON and exit on errors
echo "${vars}" | jq '.' >/dev/null # Validate JSON and exit on errors
for key in $(echo "${vars}" | jq "keys[]" -r); do
# On Windows, for whatever reason, $key contains the BOM character in it,
# and that messes up `jq ".${key}"`. This line strips the BOM from the key.