Skip to content

Commit bca0c9c

Browse files
committed
🛠️ Fixed version checking
Auto-update should now work as expected.
1 parent 37afd80 commit bca0c9c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

START.bat

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,11 @@ for /f "delims=" %%a in ('powershell -Command "(Invoke-WebRequest -Uri 'https://
2727
echo Current script version: %scriptVersion%
2828
echo Latest version from GitHub: %latestVersion%
2929
REM Check if the script version is greater than the latest version
30-
if "%latestVersion%" LSS "%scriptVersion%" (
30+
if %latestVersion% LEQ %scriptVersion% (
3131
echo You have the latest version of the script.
3232
goto initiateServer
3333
) else (
3434
echo An update is available for the script ^(version "%latestVersion%"^).
35-
echo Do you want to update? (Y/N)
3635
choice /C YN /M "Update script (Y/N): "
3736
if errorlevel 2 goto initiateServer
3837
if errorlevel 1 (

0 commit comments

Comments
 (0)