diff options
author | Kamil Chmielewski <kamil.chm@gmail.com> | 2018-08-28 11:06:04 +0200 |
---|---|---|
committer | Kamil Chmielewski <kamil.chm@gmail.com> | 2018-08-29 21:47:27 +0200 |
commit | 383de74f883ab544ef2c9811f5735592160a765d (patch) | |
tree | 97d5a538a766b30012f4f90afd938729b8c91fe1 /pkgs/build-support/setup-hooks | |
parent | 4c2d822fad93901b18a7ddcc1c9c17f9311c1413 (diff) | |
download | nixlib-383de74f883ab544ef2c9811f5735592160a765d.tar nixlib-383de74f883ab544ef2c9811f5735592160a765d.tar.gz nixlib-383de74f883ab544ef2c9811f5735592160a765d.tar.bz2 nixlib-383de74f883ab544ef2c9811f5735592160a765d.tar.lz nixlib-383de74f883ab544ef2c9811f5735592160a765d.tar.xz nixlib-383de74f883ab544ef2c9811f5735592160a765d.tar.zst nixlib-383de74f883ab544ef2c9811f5735592160a765d.zip |
patch-shebangs: filename on unsupported shebang
Show the filename on unsupported shebang error. Simplifies debugging packages with large set of scripts.
Diffstat (limited to 'pkgs/build-support/setup-hooks')
-rw-r--r-- | pkgs/build-support/setup-hooks/patch-shebangs.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/build-support/setup-hooks/patch-shebangs.sh b/pkgs/build-support/setup-hooks/patch-shebangs.sh index 1433d1e1f144..d5586fccae67 100644 --- a/pkgs/build-support/setup-hooks/patch-shebangs.sh +++ b/pkgs/build-support/setup-hooks/patch-shebangs.sh @@ -32,7 +32,7 @@ patchShebangs() { # - options: something starting with a '-' # - environment variables: foo=bar 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 fi newPath="$(command -v "$arg0" || true)" |