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") {
|
elsif ($arg eq "--command") {
|
||||||
$n++;
|
$n++;
|
||||||
die "$0: ‘$arg’ requires an argument\n" unless $n < scalar @ARGV;
|
die "$0: ‘$arg’ requires an argument\n" unless $n < scalar @ARGV;
|
||||||
$envCommand = "$ARGV[$n]\nexit $!";
|
$envCommand = "$ARGV[$n]\nexit";
|
||||||
}
|
}
|
||||||
|
|
||||||
elsif ($arg eq "--exclude") {
|
elsif ($arg eq "--exclude") {
|
||||||
|
|
Loading…
Reference in a new issue