aboutsummaryrefslogtreecommitdiff
path: root/pkgs/build-support/setup-hooks
diff options
context:
space:
mode:
authorBryan Gardiner <bog@khumba.net>2020-03-20 17:07:26 -0700
committerBryan Gardiner <bog@khumba.net>2020-03-20 17:08:10 -0700
commitbc21c247fc68cc0d68826433a840de8747a3a353 (patch)
tree30d92638fc559bbc5564da09c69332d665aba771 /pkgs/build-support/setup-hooks
parent97c40baa9c4e3f25a9b0c53600a81c193eb12361 (diff)
patch-shebangs.sh: Fix error messages to go to stderr, not '0' file.
Diffstat (limited to 'pkgs/build-support/setup-hooks')
-rw-r--r--pkgs/build-support/setup-hooks/patch-shebangs.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/build-support/setup-hooks/patch-shebangs.sh b/pkgs/build-support/setup-hooks/patch-shebangs.sh
index 29fed7ad7940..b48b0c50f577 100644
--- a/pkgs/build-support/setup-hooks/patch-shebangs.sh
+++ b/pkgs/build-support/setup-hooks/patch-shebangs.sh
@@ -42,7 +42,7 @@ patchShebangs() {
local newInterpreterLine
if [ $# -eq 0 ]; then
- echo "No arguments supplied to patchShebangs" >0
+ echo "No arguments supplied to patchShebangs" >&2
return 0
fi
@@ -66,7 +66,7 @@ patchShebangs() {
# - options: something starting with a '-'
# - environment variables: foo=bar
if $(echo "$arg0" | grep -q -- "^-.*\|.*=.*"); then
- echo "$f: unsupported interpreter directive \"$oldInterpreterLine\" (set dontPatchShebangs=1 and handle shebang patching yourself)" >0
+ echo "$f: unsupported interpreter directive \"$oldInterpreterLine\" (set dontPatchShebangs=1 and handle shebang patching yourself)" >&2
exit 1
fi