From 314adf9648bd5019441d0f82c7273b302b6aea66 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 23 Jan 2013 11:31:48 +0100 Subject: [PATCH] nixos-rebuild: Don't rely on $SHELL Fixes #74. --- modules/installer/tools/nixos-rebuild.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/installer/tools/nixos-rebuild.sh b/modules/installer/tools/nixos-rebuild.sh index b9272f31ac6f..255c8150bdde 100644 --- a/modules/installer/tools/nixos-rebuild.sh +++ b/modules/installer/tools/nixos-rebuild.sh @@ -139,7 +139,7 @@ fi # Update the version suffix if we're building from Git (so that # nixos-version shows something useful). if nixos=$(nix-instantiate --find-file nixos "${extraBuildFlags[@]}"); then - suffix=$($SHELL $nixos/modules/installer/tools/get-version-suffix "${extraBuildFlags[@]}") + suffix=$(@shell@ $nixos/modules/installer/tools/get-version-suffix "${extraBuildFlags[@]}") if [ -n "$suffix" ]; then echo -n "$suffix" > "$nixos/.version-suffix" fi