https://git.reactos.org/?p=reactos.git;a=commitdiff;h=3feb0cfb9fca759405f6ba434423f30c3214dc72
commit 3feb0cfb9fca759405f6ba434423f30c3214dc72 Author: Mark Jansen <mark.jan...@reactos.org> AuthorDate: Sun Apr 11 14:25:08 2021 +0200 Commit: Mark Jansen <mark.jan...@reactos.org> CommitDate: Sun Apr 18 13:40:30 2021 +0200 [CONFIGURE] Fix warnings shown when parsing cmdline --- configure.cmd | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/configure.cmd b/configure.cmd index 2d780760681..813fb48f2e3 100755 --- a/configure.cmd +++ b/configure.cmd @@ -87,8 +87,8 @@ REM Parse command line parameters echo Please run this command in a [Developer] Command Prompt for Visual Studio. goto quit ) else if /I "%1" NEQ "" ( - echo %1| find /I "-D" > NUL - if %ERRORLEVEL% == 0 ( + echo.%1| find /I "-D" >nul 2>&1 + if not errorlevel 1 ( REM User is passing a switch to CMake REM Ignore it, and ignore the next parameter that follows Shift @@ -123,8 +123,8 @@ REM Parse command line parameters set CMAKE_ARCH=-A ARM ) ) else if /I "%1" NEQ "" ( - echo %1| find /I "-D" > NUL - if %ERRORLEVEL% == 0 ( + echo.%1| find /I "-D" >nul 2>&1 + if not errorlevel 1 ( REM User is passing a switch to CMake REM Ignore it, and ignore the next parameter that follows Shift