Update check_updates.bat

This commit is contained in:
Verity-Freedom 2024-12-08 11:09:19 +03:00 committed by GitHub
parent 95fbabe968
commit d663e14297
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -51,7 +51,7 @@ if "%~1"=="soft" (
set "NEW_VERSION=" set "NEW_VERSION="
for /f "delims=" %%A in ('powershell -command "(Invoke-WebRequest -Uri %GITHUB_URL% -Headers @{\"Cache-Control\"=\"no-cache\"} -TimeoutSec 5).Content" 2^>nul') do set "NEW_VERSION=%%A" for /f "delims=" %%A in ('powershell -command "(Invoke-WebRequest -Uri %GITHUB_URL% -Headers @{\"Cache-Control\"=\"no-cache\"} -TimeoutSec 5).Content" 2^>nul') do set "NEW_VERSION=%%A"
if not defined NEW_VERSION ( if not defined NEW_VERSION (
echo Erorr reading new version echo Error reading new version
goto :EOF goto :EOF
) )