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() {