From 25ccfeed772ab3060096d966c78a68aa370ba50a Mon Sep 17 00:00:00 2001 From: David Refoua Date: Wed, 13 Nov 2024 23:08:13 +0330 Subject: [PATCH] prevent warnings if the dir does not exist https://github.com/cmderdev/cmder/issues/121#issuecomment-654171568 --- vendor/lib/lib_path.cmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/lib/lib_path.cmd b/vendor/lib/lib_path.cmd index d9f229b..33386f7 100644 --- a/vendor/lib/lib_path.cmd +++ b/vendor/lib/lib_path.cmd @@ -52,7 +52,7 @@ exit /b set "position=" ) - dir "%add_path%" | findstr -i "\.COM \.EXE \.BAT \.CMD \.PS1 \.VBS" >NUL + dir "%add_path%" 2>NUL | findstr -i "\.COM \.EXE \.BAT \.CMD \.PS1 \.VBS" >NUL if "%ERRORLEVEL%" == "0" ( set "add_to_path=%add_path%" ) else (