Skip to content

Commit a996d22

Browse files
author
Mike Schlueter
committed
Fix check and error message by moving the use of the variable outside of the code block (if statement) where it is assigned (in 2 locations).
1 parent 1c74842 commit a996d22

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

BaseTools/toolsetup.bat

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -243,15 +243,15 @@ if /I "%1"=="/?" goto Usage
243243
) else (
244244
set EDK_TOOLS_BIN=%EDK_TOOLS_PATH%\Bin\Win32
245245
)
246-
if not defined FORCE_REBUILD (
247-
if not defined REBUILD (
248-
if not exist "%EDK_TOOLS_BIN%" (
249-
echo.
250-
echo !!! ERROR !!! Cannot find BaseTools Bin Win32!!!
251-
echo Please check the directory %EDK_TOOLS_BIN%
252-
echo Or configure EDK_TOOLS_BIN env to point to Bin directory.
253-
echo.
254-
)
246+
)
247+
if not defined FORCE_REBUILD (
248+
if not defined REBUILD (
249+
if not exist "%EDK_TOOLS_BIN%" (
250+
echo.
251+
echo !!! ERROR !!! Cannot find BaseTools Bin Win32!!!
252+
echo Please check the directory %EDK_TOOLS_BIN%
253+
echo Or configure EDK_TOOLS_BIN env to point to Bin directory.
254+
echo.
255255
)
256256
)
257257
)
@@ -285,15 +285,15 @@ if /I "%1"=="/?" goto Usage
285285
) else (
286286
set EDK_TOOLS_BIN=%EDK_TOOLS_PATH%\Bin\Win32
287287
)
288-
if not defined FORCE_REBUILD (
289-
if not defined REBUILD (
290-
if not exist "%EDK_TOOLS_BIN%" (
291-
echo.
292-
echo !!! ERROR !!! Cannot find BaseTools Bin Win32!!!
293-
echo Please check the directory %EDK_TOOLS_BIN%
294-
echo Or configure EDK_TOOLS_BIN env to point to Bin directory.
295-
echo.
296-
)
288+
)
289+
if not defined FORCE_REBUILD (
290+
if not defined REBUILD (
291+
if not exist "%EDK_TOOLS_BIN%" (
292+
echo.
293+
echo !!! ERROR !!! Cannot find BaseTools Bin Win32!!!
294+
echo Please check the directory %EDK_TOOLS_BIN%
295+
echo Or configure EDK_TOOLS_BIN env to point to Bin directory.
296+
echo.
297297
)
298298
)
299299
)

0 commit comments

Comments
 (0)