aboutsummaryrefslogtreecommitdiff
path: root/tests/pure-eval.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/pure-eval.sh
parente8415dc439704ee71b0a03b60bc5110bd3426314 (diff)
parentc11836126b5148b6796c2470404a0bdf25cdfbe3 (diff)
Merge pull request #5754 from obsidiansystems/harden-tests-set-u
Harden tests' bash
Diffstat (limited to 'tests/pure-eval.sh')
-rw-r--r--tests/pure-eval.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/pure-eval.sh b/tests/pure-eval.sh
index b83ab8afe..5334bf28e 100644
--- a/tests/pure-eval.sh
+++ b/tests/pure-eval.sh
@@ -8,7 +8,7 @@ nix eval --expr 'assert 1 + 2 == 3; true'
missingImpureErrorMsg=$(! nix eval --expr 'builtins.readFile ./pure-eval.sh' 2>&1)
-echo "$missingImpureErrorMsg" | grep -q -- --impure || \
+echo "$missingImpureErrorMsg" | grepQuiet -- --impure || \
fail "The error message should mention the “--impure” flag to unblock users"
[[ $(nix eval --expr 'builtins.pathExists ./pure-eval.sh') == false ]] || \