尝试执行shell脚本时出现以下错误,
$'\r': command not found: line 2:
Run Code Online (Sandbox Code Playgroud)
请为此建议一个解决方案.
以下是脚本中使用的初始行,
#!/bin/sh
if [[ $# -lt 1 ]]; then
echo "ERROR Environment argument missing <dev,test,qa,prod>"
export RC=50
exit $RC
fi
Run Code Online (Sandbox Code Playgroud) shell ×1