aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2021-03-08 10:13:39 +0100
committerGitHub <noreply@github.com>2021-03-08 10:13:39 +0100
commit1c0e3e453d41b869e4ac7e25dc1c00c349a7c411 (patch)
treec3df7ef4bb153733e195f9880addb4db2c3a2073 /src
parent8ce2045ecc86dd0c8aa91937c423a48b723eaf2d (diff)
parent6e849e3b0a6eb46e6dc65cbd091cc829eab09a5f (diff)
Merge pull request #4601 from lovesegfault/fix-4598
nix-build: check that envCommand exists
Diffstat (limited to 'src')
-rwxr-xr-xsrc/nix-build/nix-build.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nix-build/nix-build.cc b/src/nix-build/nix-build.cc
index 7b4a53919..65b85b304 100755
--- a/src/nix-build/nix-build.cc
+++ b/src/nix-build/nix-build.cc
@@ -447,6 +447,7 @@ static void main_nix_build(int argc, char * * argv)
"unset NIX_ENFORCE_PURITY; "
"shopt -u nullglob; "
"unset TZ; %6%"
+ "shopt -s execfail;"
"%7%",
shellEscape(tmpDir),
(pure ? "" : "p=$PATH; "),