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

Installation not working on OSX due to CRLF files (solution provided) #178

Open
mgohin opened this issue Jul 3, 2024 · 0 comments
Open

Comments

@mgohin
Copy link

mgohin commented Jul 3, 2024

Hi,

we needed to use dos2unix to be able to install and correctly use Twgit on OSX, in order to convert all files to LF instead of CRLF.

Problem encountered
Here all lines with command not found were in fact empty.

➜ twgit git:(stable) sudo make install

: command not found/makefile.sh: line 2: 
: command not found/makefile.sh: line 8: 
: command not found/makefile.sh: line 11: 
: command not found/makefile.sh: line 17: 
'Users/morgan/twgit/makefile.sh: line 31: syntax error near unexpected token `{
'Users/morgan/twgit/makefile.sh: line 31: `main() {
make: *** [install] Error 2

Solution used

brew install dos2unix
git clone https://github.com/Twenga/twgit.git .
find . -type f -not -path './.git/*' -print0 | xargs -0 dos2unix
sudo make install

Even if we only tweaked Makefile and makefile.sh, and installed twgit, we would have issues later when executing commands.

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