about summary refs log tree commit diff
path: root/scripts/nix-build.in
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2015-01-07T15·10+0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2015-01-07T15·10+0100
commit7ba0e9cb481f00baca02f31393ad49681fc48a5d (patch)
treeb1e533bd8e9bebed1ddba07d4406b03395686a6e /scripts/nix-build.in
parent153a943de7c333470e2b7338a8edae4a8ae52181 (diff)
nix-shell --command: Remove bogus argument to "exit"
Fixes "exit: Inappropriate: numeric argument required" errors.
Diffstat (limited to 'scripts/nix-build.in')
-rwxr-xr-xscripts/nix-build.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/nix-build.in b/scripts/nix-build.in
index 9127d90b24dd..3ac02ad35ea5 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") {