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

download.sh: line 2: $'\r': command not found #493

Closed
Crisfw opened this issue Jul 22, 2023 · 6 comments
Closed

download.sh: line 2: $'\r': command not found #493

Crisfw opened this issue Jul 22, 2023 · 6 comments
Assignees
Labels
download-install Download and installation issues

Comments

@Crisfw
Copy link

Crisfw commented Jul 22, 2023

run download.sh by cygwin in windows but it give back "download.sh: line 2: $'\r': command not found"

@Abdulazizzn
Copy link

I am facing the same problem.

@Crisfw
Copy link
Author

Crisfw commented Jul 22, 2023 via email

@nickdnickd
Copy link

It seems like you checked out Windows line endings but are trying to run the shell script in a unix-like environment (cygwin) Try converting the line endings in your file to unix ending. cygwin might have the command dos2unix download.sh.

@varunfb varunfb added the download-install Download and installation issues label Sep 6, 2023
@varunfb
Copy link

varunfb commented Sep 6, 2023

There is currently a PR thats in progress that should fix the issue. Meanwhile you can try that on your local machine.

@adambaileyland
Copy link

I used Notepad++ to change the LF for download.sh (Thanks to this thread: https://stackoverflow.com/questions/20368781/anything-like-dos2unix-for-windows)
Go to: Edit -> EOL Conversion -> Unix.

@Crisfw
Copy link
Author

Crisfw commented Dec 17, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
download-install Download and installation issues
Projects
None yet
Development

No branches or pull requests

5 participants