- Add a missing setlocal for an errorlevel check and remove a stray blank line from being displayed in the help.

svn path=/trunk/tools/RosBE/; revision=536
This commit is contained in:
Peter Ward 2007-11-12 19:36:24 +00:00
parent 0377bc2e99
commit e006e8caa0
2 changed files with 3 additions and 2 deletions

View File

@ -38,7 +38,6 @@ if "%1" == "" (
if exist "%_ROSBE_BASEDIR%\Config.cmd" (
echo config [OPTIONS] - Configures the way, ReactOS will be built.
echo.
)
echo help [COMMAND] - Display the available commands or help on a

View File

@ -92,12 +92,14 @@ call :LOADDOSKEYMACROS
:: Look if the ReactOS source directory is empty. If so,
:: inform the user and mention 'ssvn create' (only if ssvn is installed).
::
setlocal enabledelayedexpansion
if exist "%_ROSBE_BASEDIR%\sSVN.cmd" (
dir /b "%_ROSBE_ROSSOURCEDIR%" 2>nul | findstr "." >nul
if errorlevel 1 (
if !errorlevel! == 1 (
echo No ReactOS source detected. Please use "ssvn create" to download it.
)
)
endlocal
goto :EOC