From f76bfbfbd6891b6e8d12c4e15b29719026e304ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophane=20Hufschmitt?= Date: Mon, 11 Apr 2022 10:20:36 +0200 Subject: [PATCH] Remove the dependency to `which` in the tests --- tests/gc-external-daemon.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/gc-external-daemon.sh b/tests/gc-external-daemon.sh index be7631068..3a321ce99 100644 --- a/tests/gc-external-daemon.sh +++ b/tests/gc-external-daemon.sh @@ -5,7 +5,7 @@ startGcDaemon() { # Start the daemon, wait for the socket to appear. !!! # ‘nix-daemon’ should have an option to fork into the background. rm -f $NIX_GC_SOCKET_PATH - $(dirname $(which nix))/../libexec/nix/nix-find-roots \ + $(dirname $(command -v nix))/../libexec/nix/nix-find-roots \ -l "$NIX_GC_SOCKET_PATH" \ -d "$NIX_STATE_DIR" \ -s "$NIX_STORE_DIR" \