From c8ef6dfa5a9c9a869b0bfd08a2cd9b2bb35a6ce6 Mon Sep 17 00:00:00 2001 From: Farid Zakaria Date: Tue, 30 Sep 2025 20:23:17 -0700 Subject: [PATCH] shellcheck fix: tests/functional/user-envs.sh --- maintainers/flake-module.nix | 1 - tests/functional/user-envs-test-case.sh | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/maintainers/flake-module.nix b/maintainers/flake-module.nix index e1c89f71a..83891daa2 100644 --- a/maintainers/flake-module.nix +++ b/maintainers/flake-module.nix @@ -106,7 +106,6 @@ enable = true; excludes = [ # We haven't linted these files yet - ''^tests/functional/user-envs\.sh$'' ''^tests/functional/why-depends\.sh$'' ]; }; diff --git a/tests/functional/user-envs-test-case.sh b/tests/functional/user-envs-test-case.sh index 9f4450161..f6a8ab8c6 100644 --- a/tests/functional/user-envs-test-case.sh +++ b/tests/functional/user-envs-test-case.sh @@ -158,7 +158,7 @@ test -e "$outPath10" # Uninstall everything nix-env -e '*' -test "$(nix-env -q '*' -c)" -eq 0 +test "$(nix-env -q '*' | wc -l)" -eq 0 # Installing "foo" should only install the newest foo. nix-env -i foo