diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-01-07 16:10:20 +0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-01-07 16:10:20 +0100 |
commit | 7ba0e9cb481f00baca02f31393ad49681fc48a5d (patch) | |
tree | b1e533bd8e9bebed1ddba07d4406b03395686a6e | |
parent | 153a943de7c333470e2b7338a8edae4a8ae52181 (diff) |
nix-shell --command: Remove bogus argument to "exit"
Fixes "exit: Inappropriate: numeric argument required" errors.
-rwxr-xr-x | scripts/nix-build.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/nix-build.in b/scripts/nix-build.in index 9127d90b2..3ac02ad35 100755 --- a/scripts/nix-build.in +++ b/scripts/nix-build.in @@ -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") { |