From 286381f0727a5aee3413c24989ad5fb609653c49 Mon Sep 17 00:00:00 2001 From: Will Dietz Date: Fri, 28 Sep 2018 11:17:33 -0500 Subject: [PATCH] patch-shebangs: simplify a bit per reviewer suggestion --- pkgs/build-support/setup-hooks/patch-shebangs.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkgs/build-support/setup-hooks/patch-shebangs.sh b/pkgs/build-support/setup-hooks/patch-shebangs.sh index 0ac81102658..18eb011b0c7 100644 --- a/pkgs/build-support/setup-hooks/patch-shebangs.sh +++ b/pkgs/build-support/setup-hooks/patch-shebangs.sh @@ -19,9 +19,7 @@ patchShebangs() { local newInterpreterLine find "$dir" -type f -perm -0100 | while read f; do - if ! isScript "$f"; then - continue - fi + isScript "$f" || continue oldInterpreterLine=$(head -1 "$f" | tail -c+3) read -r oldPath arg0 args <<< "$oldInterpreterLine"