有人说是因为这些sh是从windows复制过来的,跟linux不兼容。
解决:(我是ubuntu)
apt install dos2unix
dos2unix xxx.sh
$'\r': 未找到命令
原文:https://www.cnblogs.com/amtisy/p/13559109.html