patch-shebangs: filename on unsupported shebang
Show the filename on unsupported shebang error. Simplifies debugging packages with large set of scripts.
This commit is contained in:
@@ -32,7 +32,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 "unsupported interpreter directive \"$oldInterpreterLine\" (set dontPatchShebangs=1 and handle shebang patching yourself)"
|
echo "$f: unsupported interpreter directive \"$oldInterpreterLine\" (set dontPatchShebangs=1 and handle shebang patching yourself)"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
newPath="$(command -v "$arg0" || true)"
|
newPath="$(command -v "$arg0" || true)"
|
||||||
|
|||||||
Reference in New Issue
Block a user