我在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>
答案 0 :(得分:0)
修复curl命令中的URL:
https://raw.githubusercontent.com/dotnet/cli/rel/1.0.0/scripts/obtain/uninstall/dotnet-uninstall-debian-packages.sh