patch-shebangs: simplify a bit per reviewer suggestion

This commit is contained in:
Will Dietz 2018-09-28 11:17:33 -05:00
parent 830f9fabd4
commit 286381f072

View File

@ -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"