脚本包含 Windows 格式的回车换行符(\r\n),而在 Linux 中应该使用 Unix 格式的换行符(\n)。这导致 bash 将 \r 解释为命令的一部分而报错。
./mmiot_ecdsa_sign.sh: line 2: $'\r': command not found
./mmiot_ecdsa_sign.sh: line 4: $'\r': command not found
./mmiot_ecdsa_sign.sh: line 5: syntax error near unexpected token `$'\r''
'/mmiot_ecdsa_sign.sh: line 5: `function CheckStop()