3
0
Fork 0
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:
Matthew Bauer 2021-01-30 18:37:10 -06:00 committed by GitHub
commit 048e0d3f87
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
}