1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-14 11:57:34 +00:00
nix-darwin/pkgs
Michael Hoang fd6660cb91 tests: fix negative asserts with grep not working
Using `grep -v` without `-z` will return 0 even if there is a match
found as all the non-matching lines will be matched. Instead of using
`grep -vqz`, `(! grep ...)` is more readable.

The brackets are necessary as `! grep` will not trigger `set -e`[0], so we
run it inside a subshell to use its non-zero exit code.

[0]: https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.html#The-Set-Builtin
2024-10-27 21:26:19 +11:00
..
darwin-installer tests: fix negative asserts with grep not working 2024-10-27 21:26:19 +11:00
darwin-uninstaller darwin-uninstaller: Fix when using nixpkgs.config.allowAliases = false 2024-03-06 08:04:42 -05:00
nix-tools Merge pull request #1115 from PhilipBorgesen/align_usage 2024-10-25 14:25:25 +11:00