mirror of
				https://github.com/cmderdev/cmder.git
				synced 2025-11-01 01:42:17 +08:00 
			
		
		
		
	prevent warnings if the dir does not exist
https://github.com/cmderdev/cmder/issues/121#issuecomment-654171568
This commit is contained in:
		
							
								
								
									
										2
									
								
								vendor/lib/lib_path.cmd
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								vendor/lib/lib_path.cmd
									
									
									
									
										vendored
									
									
								
							| @@ -52,7 +52,7 @@ exit /b | |||||||
|         set "position=" |         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" ( |     if "%ERRORLEVEL%" == "0" ( | ||||||
|         set "add_to_path=%add_path%" |         set "add_to_path=%add_path%" | ||||||
|     ) else ( |     ) else ( | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user