From 8ed1104a4a0c7f6cc289dd35b5dfd46539dcd8be Mon Sep 17 00:00:00 2001 From: Victor Engmark Date: Fri, 5 Nov 2021 17:24:28 +1300 Subject: [PATCH] pkgs/build-support: Redirect to standard error rather than file "2" --- pkgs/build-support/setup-hooks/role.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/build-support/setup-hooks/role.bash b/pkgs/build-support/setup-hooks/role.bash index cf69e732e7c3..b2d34a1f8606 100644 --- a/pkgs/build-support/setup-hooks/role.bash +++ b/pkgs/build-support/setup-hooks/role.bash @@ -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