Auto merge of #116147 - compiler-errors:jq, r=dtolnay
Fix jq in CI r? `@Mark-Simulacrum`
This commit is contained in:
commit
9d32ba3a72
@ -10,7 +10,7 @@ source "$(cd "$(dirname "$0")" && pwd)/../shared.sh"
|
|||||||
|
|
||||||
# Load extra environment variables
|
# Load extra environment variables
|
||||||
vars="${EXTRA_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
|
for key in $(echo "${vars}" | jq "keys[]" -r); do
|
||||||
# On Windows, for whatever reason, $key contains the BOM character in it,
|
# 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.
|
# and that messes up `jq ".${key}"`. This line strips the BOM from the key.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user