首页 > 技术文章 > bash xx.sh会报$'\r': 未找到命令
52py 2020-12-17 16:33 原文
原因
是因为命令直接从windows 复制过来导致的
解决方法
yum install dos2unix
dos2unix **.sh 进行转换
再次执行即可