mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-16 17:14:00 +00:00
stdenv: fix substituteStream --replace-quiet
deprecation warning
This commit is contained in:
parent
4c7c79948e
commit
cb4c41f93a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user