stdenv: mute errors when failing to write env-vars
This commit is contained in:
parent
5748022aa3
commit
659da9b738
@ -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 New Issue
Block a user