mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 21:50:55 +00:00
patch-shebangs: simplify a bit per reviewer suggestion
This commit is contained in:
parent
830f9fabd4
commit
286381f072
|
@ -19,9 +19,7 @@ patchShebangs() {
|
||||||
local newInterpreterLine
|
local newInterpreterLine
|
||||||
|
|
||||||
find "$dir" -type f -perm -0100 | while read f; do
|
find "$dir" -type f -perm -0100 | while read f; do
|
||||||
if ! isScript "$f"; then
|
isScript "$f" || continue
|
||||||
continue
|
|
||||||
fi
|
|
||||||
|
|
||||||
oldInterpreterLine=$(head -1 "$f" | tail -c+3)
|
oldInterpreterLine=$(head -1 "$f" | tail -c+3)
|
||||||
read -r oldPath arg0 args <<< "$oldInterpreterLine"
|
read -r oldPath arg0 args <<< "$oldInterpreterLine"
|
||||||
|
|
Loading…
Reference in a new issue