git on Windows, by default, normalizes line endings on checkout by automatically converting LF to CRLF. This was causing the novnc bash and python scripts to fail on execution in bash (the shebang couldn't be parsed).
I fixed my local machine by disabling auto line ending normalization globally in git:
git config --global core.autocrlf false (and everyone else should do this too)
This commit will prevent other people from hitting the issue altogether. Note that it does NOT imply all files should be treated as binary. It should only affect line ending normalization (https://stackoverflow.com/a/10017566).
git on Windows, by default, normalizes line endings on checkout by automatically converting LF to CRLF. This was causing the novnc bash and python scripts to fail on execution in bash (the shebang couldn't be parsed).
I fixed my local machine by disabling auto line ending normalization globally in git:
git config --global core.autocrlf false
(and everyone else should do this too)This commit will prevent other people from hitting the issue altogether. Note that it does NOT imply all files should be treated as binary. It should only affect line ending normalization (https://stackoverflow.com/a/10017566).