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