./a.out: 行 11: 未预期的符号 `$'{\r'' 附近有语法错误
考虑到代码是从windows下一直过来的,脚本可能在格式上存在问题
安装:
install dos2unix 操作: dos2unix **.sh