зеркало из https://github.com/aspnet/KoreBuild.git
Show errors when curl fails
This commit is contained in:
Родитель
be1eb6b31c
Коммит
f692ca7c8e
|
@ -513,9 +513,9 @@ download() {
|
|||
|
||||
local failed=false
|
||||
if [ -z "$out_path" ]; then
|
||||
curl --fail -s $remote_path || failed=true
|
||||
curl --fail -sSL $remote_path || failed=true
|
||||
else
|
||||
curl --fail -s -o $out_path $remote_path || failed=true
|
||||
curl --fail -sSL -o $out_path $remote_path || failed=true
|
||||
fi
|
||||
|
||||
if [ "$failed" = true ]; then
|
||||
|
@ -685,4 +685,4 @@ else
|
|||
say "Binaries of dotnet can be found in $bin_path"
|
||||
fi
|
||||
|
||||
say "Installation finished successfully."
|
||||
say "Installation finished successfully."
|
||||
|
|
Загрузка…
Ссылка в новой задаче