about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-08-17T16·37+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-08-17T16·37+0200
commitc6e85ee474d79953f14c8bd633ec3f35d246d4a9 (patch)
tree672b977e752330b82e385d2bad9eb6e5979a8282
parentccd4fe5c490f3885615a01900ac34bc099735815 (diff)
nix-build: Propagate exit status from nix-store -r
-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 ef86cb97b7ce..381dbd5e266c 100755
--- a/scripts/nix-build.in
+++ b/scripts/nix-build.in
@@ -274,7 +274,7 @@ foreach my $expr (@exprs) {
     while (<OUTPATHS>) {chomp; push @outPaths, $_;}
     if (!close OUTPATHS) {
         die "nix-store killed by signal " . ($? & 127) . "\n" if ($? & 127);
-        exit 1;
+        exit $? >> 8 || 1;
     }
 
     next if $dryRun;