From d55b9fa78c301672774a1fb4be13d55935871762 Mon Sep 17 00:00:00 2001 From: WindowsAddict Date: Sun, 18 Aug 2024 05:08:35 +0530 Subject: Avoid using pause if Terminal is detected --- MAS/Separate-Files-Version/Troubleshoot.cmd | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'MAS/Separate-Files-Version/Troubleshoot.cmd') diff --git a/MAS/Separate-Files-Version/Troubleshoot.cmd b/MAS/Separate-Files-Version/Troubleshoot.cmd index e35d102..eeaa116 100644 --- a/MAS/Separate-Files-Version/Troubleshoot.cmd +++ b/MAS/Separate-Files-Version/Troubleshoot.cmd @@ -829,10 +829,14 @@ echo: ) else ( echo: call :dk_color %_Yellow% "A Window will popup, in that Window you need to select [Quick] Repair Option..." +if defined terminal ( +call :dk_color %_Yellow% "Press 0 key to continue..." +choice /c 0 /n +) else ( call :dk_color %_Yellow% "Press any key to continue..." -echo: pause %nul1% ) +) if defined uwp16 ( echo: @@ -1042,8 +1046,13 @@ exit /b echo: echo %line% echo: -call :dk_color %_Yellow% "Press any key to go back..." +if defined terminal ( +call :dk_color %_Yellow% "Press 0 key to %_exitmsg%..." +choice /c 0 /n +) else ( +call :dk_color %_Yellow% "Press any key to %_exitmsg%..." pause %nul1% +) goto :at_menu ::======================================================================================================================================== -- cgit v1.2.3