patch-shebangs.sh: Fix error messages to go to stderr, not '0' file.

gstqt5
Bryan Gardiner 2020-03-20 17:07:26 -07:00
parent 97c40baa9c
commit bc21c247fc
No known key found for this signature in database
GPG Key ID: 53EFBCA063E6183C
1 changed files with 2 additions and 2 deletions

View File

@ -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