Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected EOF while looking for matching `"' (in nvs temp files) #264

Open
trsblk opened this issue Nov 9, 2022 · 0 comments
Open

Unexpected EOF while looking for matching `"' (in nvs temp files) #264

trsblk opened this issue Nov 9, 2022 · 0 comments

Comments

@trsblk
Copy link

trsblk commented Nov 9, 2022

Hello there,

I am using nvs on a windows machine. After I configured my git
git config --global core.eol lf and
git config --global core.autocrlf input I still get this error in Git Bash when I try nvs use latest or nvs use node/version:

...user/AppData/Local/nvs/nvs_tmp_1733440591.sh: line 1: unexpected EOF while looking for matching
...user/AppData/Local/nvs/nvs_tmp_1733440591.sh: line 3: syntax error: unexpected end of file.
(Before git configuration everything worked fine)

This should occur because of CRLF vs LF line endings. To solve this I tried dos2unix nvs.sh to convert line endings to LF, but the problem is that line endings still be CRLF (as I understood) in that temporary generated files by nvs.sh (post executable scripts). Is there any way to apply dos2unix also on that temp generated files? Or maybe do you have other ideas how to solve this problem? Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant