This forum is a read-only archive. Posting, replying and signing in are disabled.

Bash: $'\r': command not found

fabrice

One potential issue is that you have the wrong line endings in your file: Windows and Linux have different way of indicating line ending.

See bash - '\r': command not found - .bashrc / .bash_profile - Stack Overflow for solutions for that problem. Concretely:

dos2unix /data/contracts/rps/config.sh

if dos2unix is not available and your OS is Ubuntu:

apt-get update
apt-get install dos2unix

You can also read for example How to Get Consistent Line Breaks in VS Code (LF vs CRLF) - DEV Community if you’re using VS Code.

If this does not work, can you provide the config.sh file you tried to use (as well as where you got it from - e.g., exact min of the video or other resource)?