From b39f484dbd372e955011266be9b916126c1967dc Mon Sep 17 00:00:00 2001 From: amd64fox Date: Fri, 1 Jul 2022 23:39:17 +0300 Subject: [PATCH] fix curl - Disable cert revocation checks (Schannel) https://github.com/amd64fox/SpotX/issues/51 - Added repeated web request if curl cmdlet is used --- Install.ps1 | 4 ++-- scripts/Install_Rus.ps1 | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Install.ps1 b/Install.ps1 index c40f49b..1b3b59e 100644 --- a/Install.ps1 +++ b/Install.ps1 @@ -183,7 +183,7 @@ function downloadScripts($param1) { } try { if ($param1 -eq "Desktop" -and $curl_check) { - curl.exe $web_Url -o $local_Url --progress-bar + curl.exe $web_Url -o $local_Url --progress-bar --retry 3 --ssl-no-revoke } if ($param1 -eq "Desktop" -and $null -ne (Get-Module -Name BitsTransfer -ListAvailable) -and !($curl_check )) { Start-BitsTransfer -Source $web_Url -Destination $local_Url -DisplayName "Downloading Spotify" -Description "$vernew " @@ -207,7 +207,7 @@ function downloadScripts($param1) { try { if ($param1 -eq "Desktop" -and $curl_check) { - curl.exe $web_Url -o $local_Url --progress-bar + curl.exe $web_Url -o $local_Url --progress-bar --retry 3 --ssl-no-revoke } if ($param1 -eq "Desktop" -and $null -ne (Get-Module -Name BitsTransfer -ListAvailable) -and !($curl_check )) { Start-BitsTransfer -Source $web_Url -Destination $local_Url -DisplayName "Downloading Spotify" -Description "$vernew " diff --git a/scripts/Install_Rus.ps1 b/scripts/Install_Rus.ps1 index 8f53562..df8e598 100644 --- a/scripts/Install_Rus.ps1 +++ b/scripts/Install_Rus.ps1 @@ -183,7 +183,7 @@ function downloadScripts($param1) { } try { if ($param1 -eq "Desktop" -and $curl_check) { - curl.exe $web_Url -o $local_Url --progress-bar + curl.exe $web_Url -o $local_Url --progress-bar --retry 3 --ssl-no-revoke } if ($param1 -eq "Desktop" -and $null -ne (Get-Module -Name BitsTransfer -ListAvailable) -and !($curl_check )) { Start-BitsTransfer -Source $web_Url -Destination $local_Url -DisplayName "Downloading Spotify" -Description "$vernew " @@ -207,7 +207,7 @@ function downloadScripts($param1) { try { if ($param1 -eq "Desktop" -and $curl_check) { - curl.exe $web_Url -o $local_Url --progress-bar + curl.exe $web_Url -o $local_Url --progress-bar --retry 3 --ssl-no-revoke } if ($param1 -eq "Desktop" -and $null -ne (Get-Module -Name BitsTransfer -ListAvailable) -and !($curl_check )) { Start-BitsTransfer -Source $web_Url -Destination $local_Url -DisplayName "Downloading Spotify" -Description "$vernew "