pkgs/build-support: Redirect to standard error rather than file "2"

This commit is contained in:
Victor Engmark 2021-11-05 17:24:28 +13:00
parent f356b5f6dc
commit 8ed1104a4a

View File

@ -17,7 +17,7 @@ function getRole() {
role_post='_FOR_TARGET'
;;
*)
echo "@name@: used as improper sort of dependency" >2
echo "@name@: used as improper sort of dependency" >&2
return 1
;;
esac
@ -64,7 +64,7 @@ function getTargetRoleWrapper() {
export NIX_@wrapperName@_TARGET_TARGET_@suffixSalt@=1
;;
*)
echo "@name@: used as improper sort of dependency" >2
echo "@name@: used as improper sort of dependency" >&2
return 1
;;
esac