Skip to content

Commit 9c5a1c0

Browse files
committed
oops i forgot
1 parent 4c57b64 commit 9c5a1c0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Programs/browsers.bat

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@echo off
2+
setlocal EnableDelayedExpansion
23

34
FLTMC >NUL 2>&1 || PowerShell Start-Process -FilePath '%0' -Verb RunAs >NUL 2>&1 && EXIT /b
45
FLTMC >NUL 2>&1 && GoTo OSC
@@ -63,12 +64,12 @@ if %choice%==2 (
6364
echo 1. Mozilla Firefox ESR *Extended Support Release*
6465
echo 2. Mozilla Firefox *Default*
6566
echo =================================================
66-
set /p choice="Enter your choice: "
67-
if %choice%==1 (
67+
set /p browser_choice=Enter your choice:
68+
if !browser_choice!==1 (
6869
echo Installing, please wait...
6970
winget install Mozilla.Firefox.ESR --silent --ignore-security-hash --accept-package-agreements --accept-source-agreements --force
7071
goto finish
71-
) else if %choice%==2 (
72+
) else if !browser_choice!==2 (
7273
echo Installing, please wait...
7374
winget install Mozilla.Firefox --silent --ignore-security-hash --accept-package-agreements --accept-source-agreements --force
7475
goto finish

0 commit comments

Comments
 (0)