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

This commit is contained in:
Matvey Beloded authored and GitHub committed 2025-12-28 05:07:52 +03:00
1 parent e20eecd37c
commit 04df4830e7
1 file changed
+5 -1
+5 -1
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 (