Closed kevinfiol closed 2 years ago
Closing this. This was an error on my part, found out when I had the same issue with another project.
Warning to anyone in the future: be careful with your gitconfig. In my case, I had autocrlf = true
, which was converting LFs to CRLFs when I would clone repositories.
Description
Running the
setup.sh
script in the repo breaks using Ubuntu 20.04 on WSL2.A quick google search shows that this has to do with the setup.sh script having Windows-style line endings
\r\n
. After runningsed $'s/\r$//'
on thesetup.sh
script, I was able to execute it as normal, however, the resulting/usr/local/share/chruby/auto.sh
and/usr/local/share/chruby/chruby.sh
had the same issue. After using the abovesed
command on both scripts did chruby finally behave as expected.Steps To Reproduce
Steps to reproduce the bug:
sudo ./scripts/setup.sh
as seen in the READMEExpected Behavior
The setup script should run as normal
Actual Behavior
/usr/bin/env: ‘bash\r’: No such file or directory
Environment