From d9012e22d37cc3a9e5c0397cf63160eb041f6fc5 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sun, 3 Apr 2022 19:22:32 +0200 Subject: [PATCH] Using sh instead of $SHELL (#96) Nix install script should be parsed by a Bourne-like shell, like bash or sh. If the user invokes the script using a Korn shell or a Z Shell, the script won't work. Nix documentation says to use "sh". --- nixos-infect | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos-infect b/nixos-infect index c9c4ea6..4650947 100755 --- a/nixos-infect +++ b/nixos-infect @@ -264,7 +264,7 @@ infect() { #addgroup nixbld -g 30000 || true #for i in {1..10}; do adduser -DH -G nixbld nixbld$i || true; done - curl -L https://nixos.org/nix/install | $SHELL + curl -L https://nixos.org/nix/install | sh # shellcheck disable=SC1090 source ~/.nix-profile/etc/profile.d/nix.sh