Skip to content

Commit

Permalink
Apply dos2unix to script bin files
Browse files Browse the repository at this point in the history
After we started generating our own bin links, we did not provide the
line-ending normalization that npm did. This corrects that to have
similar behavior to before for packages with CRLF line-endings.
  • Loading branch information
lilyinstarlight committed Mar 6, 2023
1 parent 315e1b8 commit 8a6ed33
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nix/node-env.nix
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,8 @@ let
do
file="$(readlink -f "$i")"
chmod u+rwx "$file"
isScript "$file" || continue
sed -i 's/\r$//' "$file" # convert crlf to lf
patchShebangs "$file"
done
fi
Expand Down

0 comments on commit 8a6ed33

Please sign in to comment.