diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-08-17 18:37:09 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-08-17 18:37:09 +0200 |
commit | c6e85ee474d79953f14c8bd633ec3f35d246d4a9 (patch) | |
tree | 672b977e752330b82e385d2bad9eb6e5979a8282 /scripts/nix-build.in | |
parent | ccd4fe5c490f3885615a01900ac34bc099735815 (diff) |
nix-build: Propagate exit status from nix-store -r
Diffstat (limited to 'scripts/nix-build.in')
-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 ef86cb97b..381dbd5e2 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; |