Merge pull request #286526 from pbsds/fix-replace-quiet-1707148527

stdenv: fix `substituteStream --replace-quiet` deprecation warning
This commit is contained in:
Rick van Schijndel 2024-02-07 21:35:19 +01:00 committed by GitHub
commit 2c98eaf597
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -833,7 +833,7 @@ substituteStream() {
--replace)
# deprecated 2023-11-22
# this will either get removed, or switch to the behaviour of --replace-fail in the future
if [ -z "$_substituteStream_has_warned_replace_deprecation" ]; then
if [ -z "$is_quiet" ] && [ -z "$_substituteStream_has_warned_replace_deprecation" ]; then
echo "substituteStream(): WARNING: '--replace' is deprecated, use --replace-{fail,warn,quiet}. ($description)" >&2
_substituteStream_has_warned_replace_deprecation=1
fi