diff --git a/scripts/nix-build.in b/scripts/nix-build.in index f8cf318ff07a738151433cad1bfaf70f7e174f14..9127d90b24dd9e6a7ce14cb535897d7baf1c4c8c 100755 --- a/scripts/nix-build.in +++ b/scripts/nix-build.in @@ -276,7 +276,7 @@ foreach my $expr (@exprs) { while (<OUTPATHS>) {chomp; push @outPaths, $_;} if (!close OUTPATHS) { die "nix-store killed by signal " . ($? & 127) . "\n" if ($? & 127); - exit $? >> 8 || 1; + exit ($? >> 8 || 1); } next if $dryRun;