diff options
| author | Michael Goulet <michael@errs.io> | 2023-09-25 14:30:26 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2023-09-25 14:30:26 +0000 |
| commit | 2ffef3949e4f04a1621ba47058bef6f78443abc4 (patch) | |
| tree | 5d8e450e4799451652e3575bc3d21d874e9b67f8 /src/ci/scripts | |
| parent | 959b2c703d45f06962da3afa086bdda70d42efcf (diff) | |
| download | rust-2ffef3949e4f04a1621ba47058bef6f78443abc4.tar.gz rust-2ffef3949e4f04a1621ba47058bef6f78443abc4.zip | |
Fix jq in CI
Diffstat (limited to 'src/ci/scripts')
| -rwxr-xr-x | src/ci/scripts/setup-environment.sh | 2 |
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. |
