forked from lix-project/lix
nix-shell --command: Remove bogus argument to "exit"
Fixes "exit: Inappropriate: numeric argument required" errors.
This commit is contained in:
parent
153a943de7
commit
7ba0e9cb48
|
@ -134,7 +134,7 @@ for (my $n = 0; $n < scalar @ARGV; $n++) {
|
|||
elsif ($arg eq "--command") {
|
||||
$n++;
|
||||
die "$0: ‘$arg’ requires an argument\n" unless $n < scalar @ARGV;
|
||||
$envCommand = "$ARGV[$n]\nexit $!";
|
||||
$envCommand = "$ARGV[$n]\nexit";
|
||||
}
|
||||
|
||||
elsif ($arg eq "--exclude") {
|
||||
|
|
Loading…
Reference in a new issue