about summary refs log tree commit diff
path: root/pkgs/build-support/setup-hooks
diff options
context:
space:
mode:
authorKamil Chmielewski <kamil.chm@gmail.com>2018-08-28 11:06:04 +0200
committerKamil Chmielewski <kamil.chm@gmail.com>2018-08-29 21:47:27 +0200
commit383de74f883ab544ef2c9811f5735592160a765d (patch)
tree97d5a538a766b30012f4f90afd938729b8c91fe1 /pkgs/build-support/setup-hooks
parent4c2d822fad93901b18a7ddcc1c9c17f9311c1413 (diff)
downloadnixlib-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.sh2
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)"