Merge pull request #83046 from khumba/patch-shebangs-error-message-fix
patch-shebangs.sh: fix error messages to go to stderr, not '0' file
This commit is contained in:
commit
bd0fef954a
|
@ -42,7 +42,7 @@ patchShebangs() {
|
||||||
local newInterpreterLine
|
local newInterpreterLine
|
||||||
|
|
||||||
if [ $# -eq 0 ]; then
|
if [ $# -eq 0 ]; then
|
||||||
echo "No arguments supplied to patchShebangs" >0
|
echo "No arguments supplied to patchShebangs" >&2
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -66,7 +66,7 @@ patchShebangs() {
|
||||||
# - options: something starting with a '-'
|
# - options: something starting with a '-'
|
||||||
# - environment variables: foo=bar
|
# - environment variables: foo=bar
|
||||||
if $(echo "$arg0" | grep -q -- "^-.*\|.*=.*"); then
|
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
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue