Use NUL instead of /dev/null for curl

fix #821
This commit is contained in:
amd64fox
2026-02-07 20:42:28 +03:00
parent d71b1d4963
commit a784576544

View File

@@ -549,7 +549,7 @@ function downloadSp([string]$DownloadFolder) {
try {
if ($curl_check) {
$stcode = curl.exe -Is -w "%{http_code} \n" -o /dev/null -k $web_Url --retry 2 --ssl-no-revoke
$stcode = curl.exe -Is -w "%{http_code} \n" -o NUL -k $web_Url --retry 2 --ssl-no-revoke
if ($stcode.trim() -ne "200") {
Write-Host "Curl error code: $stcode"; throw
}
@@ -578,7 +578,7 @@ function downloadSp([string]$DownloadFolder) {
try {
if ($curl_check) {
$stcode = curl.exe -Is -w "%{http_code} \n" -o /dev/null -k $web_Url --retry 2 --ssl-no-revoke
$stcode = curl.exe -Is -w "%{http_code} \n" -o NUL -k $web_Url --retry 2 --ssl-no-revoke
if ($stcode.trim() -ne "200") {
Write-Host "Curl error code: $stcode"; throw
}