Fixed script termination if no option was selected in 'Install Service' (#7897)

This commit is contained in:
Matvey Beloded 2025-12-28 09:07:52 +07:00 committed by GitHub
parent e20eecd37c
commit 04df4830e7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -198,7 +198,11 @@ for %%f in (*.bat) do (
:: Choosing file :: Choosing file
set "choice=" set "choice="
set /p "choice=Input file index (number): " set /p "choice=Input file index (number): "
if "!choice!"=="" goto :eof if "!choice!"=="" (
echo The choice is empty, exiting...
pause
goto menu
)
set "selectedFile=!file%choice%!" set "selectedFile=!file%choice%!"
if not defined selectedFile ( if not defined selectedFile (