nixos-rebuild: Don't rely on $SHELL

Fixes #74.
This commit is contained in:
Eelco Dolstra 2013-01-23 11:31:48 +01:00
parent 4eb2b099e6
commit 314adf9648

View File

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