mirror of
				https://github.com/cmderdev/cmder.git
				synced 2025-10-31 01:12:11 +08:00 
			
		
		
		
	fix git missing error on cmder mini cmd shell
This commit is contained in:
		
							
								
								
									
										1
									
								
								vendor/lib/lib_console.cmd
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								vendor/lib/lib_console.cmd
									
									
									
									
										vendored
									
									
								
							| @@ -76,5 +76,4 @@ exit /b | ||||
| :::------------------------------------------------------------------------------- | ||||
|  | ||||
|     echo ERROR: %~1 | ||||
|     echo CMDER Shell Initialization has Failed! | ||||
|     exit /b | ||||
|   | ||||
							
								
								
									
										7
									
								
								vendor/lib/lib_git.cmd
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										7
									
								
								vendor/lib/lib_git.cmd
									
									
									
									
										vendored
									
									
								
							| @@ -45,11 +45,7 @@ exit /b | ||||
|     %lib_console% debug-output :read_version "Env Var - git_executable=%git_executable%" | ||||
|  | ||||
|     :: check if the executable actually exists | ||||
|     if not exist "%git_executable%" ( | ||||
|         %lib_console% show_error "%git_executable%" does not exist! | ||||
|         exit /b -255 | ||||
|     ) | ||||
|  | ||||
|     if exist "%git_executable%" ( | ||||
|         :: get the git version in the provided directory | ||||
|         for /F "tokens=1,2,3 usebackq" %%A in (`"%git_executable%" --version 2^>nul`) do ( | ||||
|             if /i "%%A %%B" == "git version" ( | ||||
| @@ -61,6 +57,7 @@ exit /b | ||||
|                 exit /b | ||||
|             ) | ||||
|         ) | ||||
|     ) | ||||
|  | ||||
|     endlocal & set GIT_VERSION%~1=!GIT_VERSION%~1! | ||||
|     exit /b | ||||
|   | ||||
		Reference in New Issue
	
	Block a user