执行shell脚本后,意外的令牌换行符消息附近出现语法错误

时间:2017-03-31 19:33:28

标签: bash shell curl github download

我在PUTTY中使用shell从Git执行远程脚本:

curl -s https://github.com/dotnet/cli/blob/rel/1.0.0/scripts/obtain/uninstall/dotnet-uninstall-debian-packages.sh >dotnet-uninstall-debian-packages.sh
./dotnet-uninstall-debian-packages.sh

但突然收到语法错误:

  

意外令牌换行符附近的语法错误

     

<!DOCTYPE html>

1 个答案:

答案 0 :(得分:0)

修复curl命令中的URL:

https://raw.githubusercontent.com/dotnet/cli/rel/1.0.0/scripts/obtain/uninstall/dotnet-uninstall-debian-packages.sh