You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Why? Windows style newline characters cause this error in Linux.
The dos2unix command modifies the newline characters so they are Linux compatible.
(CAUTION: the dos2unix command modifies files in place, so take precaution if necessary. If you need to keep the original file, you should make a backup copy first.)
Then, you can run the .sh file without that error.
linux执行sh脚本报错:$’\r’: 未找到命令的解决
The text was updated successfully, but these errors were encountered: