2017-03-31 220 views
0

後,我使用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>

+0

你使用默認的'sh'殼或'bash'運行它,你可以試試'慶典dotn et-uninstall-debian-packages.sh'? – Inian

回答

0

修復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