aboutsummaryrefslogtreecommitdiff
path: root/tests/build-dry.sh
diff options
context:
space:
mode:
authorThéophane Hufschmitt <7226587+thufschmitt@users.noreply.github.com>2023-03-08 21:25:30 +0100
committerGitHub <noreply@github.com>2023-03-08 21:25:30 +0100
commitd25322e7c0dd4b196d04af4d6bc66e2b3e3b7d4c (patch)
treecb4ee4e3f68916a907bf9c1b7d11953abc6caf8a /tests/build-dry.sh
parente8415dc439704ee71b0a03b60bc5110bd3426314 (diff)
parentc11836126b5148b6796c2470404a0bdf25cdfbe3 (diff)
Merge pull request #5754 from obsidiansystems/harden-tests-set-u
Harden tests' bash
Diffstat (limited to 'tests/build-dry.sh')
-rw-r--r--tests/build-dry.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/build-dry.sh b/tests/build-dry.sh
index 5f29239dc..6d1754af5 100644
--- a/tests/build-dry.sh
+++ b/tests/build-dry.sh
@@ -54,7 +54,7 @@ clearCache
RES=$(nix build -f dependencies.nix --dry-run --json)
-if [[ -z "$NIX_TESTS_CA_BY_DEFAULT" ]]; then
+if [[ -z "${NIX_TESTS_CA_BY_DEFAULT-}" ]]; then
echo "$RES" | jq '.[0] | [
(.drvPath | test("'$NIX_STORE_DIR'.*\\.drv")),
(.outputs.out | test("'$NIX_STORE_DIR'"))