diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-04-10T11·52+0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-04-10T11·52+0200 |
commit | 1fb30e6d50c29adcc3a3d73381cd90f5f5989c31 (patch) | |
tree | 23214213e1a02f3c922adf3b8093d6c2e17e8419 /scripts/nix-build.in | |
parent | 8f6146a7bc7c5a2e8c03b127366eff7d82552eef (diff) |
Handle the case where $SHELL is not set
Diffstat (limited to 'scripts/nix-build.in')
-rwxr-xr-x | scripts/nix-build.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/nix-build.in b/scripts/nix-build.in index 14ee1141ea95..35b186bb715d 100755 --- a/scripts/nix-build.in +++ b/scripts/nix-build.in @@ -14,7 +14,8 @@ my @instArgs = (); my @buildArgs = (); my @exprs = (); -my $envCommand = "p=\$PATH; source \$stdenv/setup; PATH=\$PATH:\$p; exec $ENV{SHELL}"; +my $shell = $ENV{SHELL} || "/bin/sh"; +my $envCommand = "p=\$PATH; source \$stdenv/setup; PATH=\$PATH:\$p; exec $shell"; my @envExclude = (); |