mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-21 04:49:01 +02:00
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:
parent
4c2d822fad
commit
383de74f88
|
@ -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)"
|
||||||
|
|
Loading…
Reference in a new issue