mirror of
https://github.com/Flowseal/zapret-discord-youtube.git
synced 2026-03-17 22:01:53 +00:00
Fix service_check_updates (#7184)
This commit is contained in:
@@ -300,7 +300,7 @@ set "GITHUB_RELEASE_URL=https://github.com/Flowseal/zapret-discord-youtube/relea
|
|||||||
set "GITHUB_DOWNLOAD_URL=https://github.com/Flowseal/zapret-discord-youtube/releases/latest/download/zapret-discord-youtube-"
|
set "GITHUB_DOWNLOAD_URL=https://github.com/Flowseal/zapret-discord-youtube/releases/latest/download/zapret-discord-youtube-"
|
||||||
|
|
||||||
:: Get the latest version from GitHub
|
:: Get the latest version from GitHub
|
||||||
for /f "delims=" %%A in ('powershell -command "(Invoke-WebRequest -Uri \"%GITHUB_VERSION_URL%\" -Headers @{\"Cache-Control\"=\"no-cache\"} -TimeoutSec 5).Content.Trim()" 2^>nul') do set "GITHUB_VERSION=%%A"
|
for /f "delims=" %%A in ('powershell -command "(Invoke-WebRequest -Uri \"%GITHUB_VERSION_URL%\" -Headers @{\"Cache-Control\"=\"no-cache\"} -UseBasicParsing -TimeoutSec 5).Content.Trim()" 2^>nul') do set "GITHUB_VERSION=%%A"
|
||||||
|
|
||||||
:: Error handling
|
:: Error handling
|
||||||
if not defined GITHUB_VERSION (
|
if not defined GITHUB_VERSION (
|
||||||
|
|||||||
Reference in New Issue
Block a user