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.
|
# the environment used for building.
|
||||||
dumpVars() {
|
dumpVars() {
|
||||||
if [ "${noDumpEnvVars:-0}" != 1 ]; then
|
if [ "${noDumpEnvVars:-0}" != 1 ]; then
|
||||||
export >| "$NIX_BUILD_TOP/env-vars" || true
|
export 2>/dev/null >| "$NIX_BUILD_TOP/env-vars" || true
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user