about summary refs log tree commit diff
path: root/src/ci/scripts
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2023-09-25 14:30:26 +0000
committerMichael Goulet <michael@errs.io>2023-09-25 14:30:26 +0000
commit2ffef3949e4f04a1621ba47058bef6f78443abc4 (patch)
tree5d8e450e4799451652e3575bc3d21d874e9b67f8 /src/ci/scripts
parent959b2c703d45f06962da3afa086bdda70d42efcf (diff)
downloadrust-2ffef3949e4f04a1621ba47058bef6f78443abc4.tar.gz
rust-2ffef3949e4f04a1621ba47058bef6f78443abc4.zip
Fix jq in CI
Diffstat (limited to 'src/ci/scripts')
-rwxr-xr-xsrc/ci/scripts/setup-environment.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ci/scripts/setup-environment.sh b/src/ci/scripts/setup-environment.sh
index 0bc35f93283..d3c55a4d6b4 100755
--- a/src/ci/scripts/setup-environment.sh
+++ b/src/ci/scripts/setup-environment.sh
@@ -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.