gitflow icon indicating copy to clipboard operation
gitflow copied to clipboard

Windows \r not found, syntax error near unexpected token

Open merlinstardust opened this issue 10 years ago • 2 comments

I just installed git-flow using the command below, found at git-flow cheatsheet

wget -q -O - --no-check-certificate https://github.com/nvie/gitflow/raw/develop/contrib/gitflow-installer.sh | bash

Unfortunately, when I run git flow init, I get the below errors.

/usr/local/bin/git-flow: line 39: $'\r': command not found
'usr/local/bin/git-flow: line 52: syntax error near unexpected token `{
'usr/local/bin/git-flow: line 52: `usage() {

merlinstardust avatar Apr 12 '15 01:04 merlinstardust

This should help:

dos2unix /usr/local/bin/git-flow-*
dos2unix /usr/local/bin/gitflow-*

airborn avatar Dec 03 '15 19:12 airborn

dos2unix /usr/local/bin/git-flow*

inithink avatar Jan 31 '19 00:01 inithink