Handle the case where $SHELL is not set

This commit is contained in:
Eelco Dolstra 2012-04-10 13:52:37 +02:00
parent 8f6146a7bc
commit 1fb30e6d50
1 changed files with 2 additions and 1 deletions

View File

@ -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 = ();