语法错误执行shell脚本
问题描述:
后,我使用shell腻子执行从Git的远程脚本:语法错误执行shell脚本
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
但突然接到一个语法错误:
Syntax error near unexpected token newline
<!DOCTYPE html>
答
修复URL在您的curl命令:
https://raw.githubusercontent.com/dotnet/cli/rel/1.0.0/scripts/obtain/uninstall/dotnet-uninstall-debian-packages.sh
+0
请看看:[我应该怎么做当有人回答我的问题?](http://stackoverflow.com/help/someone-answers) – Cyrus
你使用默认的'sh'壳或'bash'运行它,你可以试试'庆典dotn et-uninstall-debian-packages.sh'? – Inian