From c6e85ee474d79953f14c8bd633ec3f35d246d4a9 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Sun, 17 Aug 2014 18:37:09 +0200 Subject: nix-build: Propagate exit status from nix-store -r --- scripts/nix-build.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 () {chomp; push @outPaths, $_;} if (!close OUTPATHS) { die "nix-store killed by signal " . ($? & 127) . "\n" if ($? & 127); - exit 1; + exit $? >> 8 || 1; } next if $dryRun; -- cgit 1.4.1