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".
This commit is contained in:
Vincent Bernat 2022-04-03 19:22:32 +02:00 committed by GitHub
parent e649f34f79
commit d9012e22d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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