From 5c62d3d26b07bb78ec92aec69e99dbee542f5e9d Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 18 Apr 2014 16:05:20 +0200 Subject: [PATCH] nixos-rebuild: Handle $SHELL not being bash --- nixos/modules/installer/tools/nixos-rebuild.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/modules/installer/tools/nixos-rebuild.sh b/nixos/modules/installer/tools/nixos-rebuild.sh index 2d137dd52add..d7b749573fa9 100644 --- a/nixos/modules/installer/tools/nixos-rebuild.sh +++ b/nixos/modules/installer/tools/nixos-rebuild.sh @@ -1,5 +1,7 @@ #! @shell@ +if [ -x "@shell@" ]; then export SHELL="@shell@"; fi; + set -e showSyntax() {