daniel-sc / xliff-simple-merge

Merges XLIFF 1.2/2.0 files. Usable for Angular i18n automation.
MIT License
16 stars 7 forks source link

xliff-simple-merge fails on unix host #12

Closed mpumford closed 1 year ago

mpumford commented 1 year ago

How to reproduce: $ yarn add -D xliff-simple-merge $yarn run xliff-simple-merge --help

Result: yarn run v1.22.19 $ /home/datav/dv-connect/itron/itron-common/node_modules/.bin/xliff-simple-merge --help /usr/bin/env: ‘node\r’: No such file or directory error Command failed with exit code 127. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

This is caused by the bin file having DOS/Windows line endings.

daniel-sc commented 1 year ago

Hi @mpumford thanks for reporting this - would you like to provide a PR for this?

mpumford commented 1 year ago

Happy to do so. I've already got a branch with the change on. I just want to make sure it doesn't cause any problems for those using windows.