···530530 then
531531 ln -s $out/lib/node_modules/.bin $out/bin
532532533533- # Patch the shebang lines of all the executables
533533+ # Fixup all executables
534534 ls $out/bin/* | while read i
535535 do
536536 file="$(readlink -f "$i")"
537537 chmod u+rwx "$file"
538538- patchShebangs "$file"
538538+ if isScript "$file"
539539+ then
540540+ sed -i 's/\r$//' "$file" # convert crlf to lf
541541+ fi
539542 done
540543 fi
541544