forked from mirrors/nixpkgs
Merge pull request #108518 from 4z3/env-vars
stdenv: mute errors when failing to write env-vars
This commit is contained in:
commit
048e0d3f87
|
@ -787,7 +787,7 @@ substituteAllInPlace() {
|
|||
# the environment used for building.
|
||||
dumpVars() {
|
||||
if [ "${noDumpEnvVars:-0}" != 1 ]; then
|
||||
export >| "$NIX_BUILD_TOP/env-vars" || true
|
||||
export 2>/dev/null >| "$NIX_BUILD_TOP/env-vars" || true
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue