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

Cygwin git-quick-stats errors in script #39

Closed
eugen-vg opened this issue Jan 19, 2018 · 3 comments
Closed

Cygwin git-quick-stats errors in script #39

eugen-vg opened this issue Jan 19, 2018 · 3 comments
Labels

Comments

@eugen-vg
Copy link

eugen-vg commented Jan 19, 2018

Hello. I get some errors after run git-quick-stats in cygwin:

$ git-quick-stats
/usr/local/bin/git-quick-stats: line 2: $'\r': command not found
: invalid option nameick-stats: line 3: set: nounset
: invalid option nameick-stats: line 4: set: errexit
/usr/local/bin/git-quick-stats: line 5: $'\r': command not found
/usr/local/bin/git-quick-stats: line 28: syntax error near unexpected token `$'{\r''
'usr/local/bin/git-quick-stats: line 28: `function show_menu() {

@arzzen
Copy link
Owner

arzzen commented Jan 20, 2018

Hi @Zhevs you can use in cygwin /bin/dos2unix.exe /usr/local/bin/git-quick-stats
This will convert it to Unix format and you then should be able to run it.

@eugen-vg
Copy link
Author

Thank you. It worked.

@hydra
Copy link

hydra commented Mar 14, 2023

this worked for me too, but can we have the scripts with the right line endings committed to the repository so this doesn't cause any issues for anyone else in the future, perhaps using a .gitattributes file would help achieve this?

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

No branches or pull requests

3 participants