From 96ef3f29d551952caf7c583c40fd7fb8916002fd Mon Sep 17 00:00:00 2001 From: amd64fox Date: Thu, 18 Aug 2022 18:36:26 +0300 Subject: [PATCH] fix curl - removing the 200 code check for curl as it was causing some users to get an error --- Install.ps1 | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Install.ps1 b/Install.ps1 index 0eac32c..bbe39bb 100644 --- a/Install.ps1 +++ b/Install.ps1 @@ -813,8 +813,6 @@ function downloadScripts($param1) { } try { if ($param1 -eq "Desktop" -and $curl_check) { - $stcode = curl.exe -I -s $web_Url - if (!($stcode -match "200 OK")) { throw ($lang).Download6 } 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 )) { @@ -839,8 +837,6 @@ function downloadScripts($param1) { try { if ($param1 -eq "Desktop" -and $curl_check) { - $stcode = curl.exe -I -s $web_Url - if (!($stcode -match "200 OK")) { throw ($lang).Download6 } 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 )) {