curl bug fix

- bug fix if curl configuration file existed #454

Co-Authored-By: bzzrak <77467869+bzzrak@users.noreply.github.com>
This commit is contained in:
amd64fox
2023-06-30 20:54:59 +03:00
parent 551502197c
commit 2fb3aab41a

View File

@@ -407,7 +407,7 @@ function downloadSp() {
if ($stcode -ne "200") {
Write-Host "Curl error code: $stcode"; throw
}
curl.exe $web_Url -o $local_Url --progress-bar --retry 3 --ssl-no-revoke
curl.exe -q $web_Url -o $local_Url --progress-bar --retry 3 --ssl-no-revoke
return
}
if (!($curl_check ) -and $null -ne (Get-Module -Name BitsTransfer -ListAvailable)) {
@@ -435,7 +435,7 @@ function downloadSp() {
if ($stcode -ne "200") {
Write-Host "Curl error code: $stcode"; throw
}
curl.exe $web_Url -o $local_Url --progress-bar --retry 3 --ssl-no-revoke
curl.exe -q $web_Url -o $local_Url --progress-bar --retry 3 --ssl-no-revoke
return
}
if (!($curl_check ) -and $null -ne (Get-Module -Name BitsTransfer -ListAvailable) -and !($curl_check )) {