Skip to content

Commit 25ccfee

Browse files
committed
prevent warnings if the dir does not exist
#121 (comment)
1 parent 42315d8 commit 25ccfee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vendor/lib/lib_path.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ exit /b
5252
set "position="
5353
)
5454

55-
dir "%add_path%" | findstr -i "\.COM \.EXE \.BAT \.CMD \.PS1 \.VBS" >NUL
55+
dir "%add_path%" 2>NUL | findstr -i "\.COM \.EXE \.BAT \.CMD \.PS1 \.VBS" >NUL
5656
if "%ERRORLEVEL%" == "0" (
5757
set "add_to_path=%add_path%"
5858
) else (

0 commit comments

Comments
 (0)