···530 then
531 ln -s $out/lib/node_modules/.bin $out/bin
532533- # Patch the shebang lines of all the executables
534 ls $out/bin/* | while read i
535 do
536 file="$(readlink -f "$i")"
537 chmod u+rwx "$file"
538- patchShebangs "$file"
000539 done
540 fi
541
···530 then
531 ln -s $out/lib/node_modules/.bin $out/bin
532533+ # Fixup all executables
534 ls $out/bin/* | while read i
535 do
536 file="$(readlink -f "$i")"
537 chmod u+rwx "$file"
538+ if isScript "$file"
539+ then
540+ sed -i 's/\r$//' "$file" # convert crlf to lf
541+ fi
542 done
543 fi
544