Answers for "env: sh\r: No such file or directory"

0

env: sh\r: No such file or directory

Go inside android directory and run:
dos2unix ./gradlew
Posted by: Guest on July-29-2021
0

/usr/bin/env: ‘bash\r’: No such file or directory

# The error message suggests that the script you're invoking has embedded \r characters,
# which in turn suggests that it has Windows-style \r\n line endings instead of the \n-only
# line endings bash expects.
# As a quick fix, you can remove the \r chars. as follows:
sed $'s/\r$//' ./install.sh > ./install.Unix.sh
Posted by: Guest on October-08-2021

Code answers related to "env: sh\r: No such file or directory"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language