guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

135/376: nix-build: Propagate exit status from nix-store -r


From: Ludovic Courtès
Subject: 135/376: nix-build: Propagate exit status from nix-store -r
Date: Wed, 28 Jan 2015 22:04:33 +0000

civodul pushed a commit to tag 1.8
in repository guix.

commit c6e85ee474d79953f14c8bd633ec3f35d246d4a9
Author: Eelco Dolstra <address@hidden>
Date:   Sun Aug 17 18:37:09 2014 +0200

    nix-build: Propagate exit status from nix-store -r
---
 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 ef86cb9..381dbd5 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;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]