Merge pull request #10764 from Bo98/export-env
Let bin/brew handle its own exporting
This commit is contained in:
		
						commit
						cca1413bf2
					
				@ -449,13 +449,6 @@ curl_version_output="$("$HOMEBREW_CURL" --version 2>/dev/null)"
 | 
				
			|||||||
curl_name_and_version="${curl_version_output%% (*}"
 | 
					curl_name_and_version="${curl_version_output%% (*}"
 | 
				
			||||||
HOMEBREW_USER_AGENT_CURL="$HOMEBREW_USER_AGENT ${curl_name_and_version// //}"
 | 
					HOMEBREW_USER_AGENT_CURL="$HOMEBREW_USER_AGENT ${curl_name_and_version// //}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Declared in bin/brew
 | 
					 | 
				
			||||||
export HOMEBREW_BREW_FILE
 | 
					 | 
				
			||||||
export HOMEBREW_PREFIX
 | 
					 | 
				
			||||||
export HOMEBREW_REPOSITORY
 | 
					 | 
				
			||||||
export HOMEBREW_LIBRARY
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# Declared in brew.sh
 | 
					 | 
				
			||||||
export HOMEBREW_VERSION
 | 
					export HOMEBREW_VERSION
 | 
				
			||||||
export HOMEBREW_DEFAULT_CACHE
 | 
					export HOMEBREW_DEFAULT_CACHE
 | 
				
			||||||
export HOMEBREW_CACHE
 | 
					export HOMEBREW_CACHE
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										5
									
								
								bin/brew
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								bin/brew
									
									
									
									
									
								
							@ -75,6 +75,11 @@ do
 | 
				
			|||||||
  export "$VAR_NEW"="${!VAR}"
 | 
					  export "$VAR_NEW"="${!VAR}"
 | 
				
			||||||
done
 | 
					done
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					export HOMEBREW_BREW_FILE
 | 
				
			||||||
 | 
					export HOMEBREW_PREFIX
 | 
				
			||||||
 | 
					export HOMEBREW_REPOSITORY
 | 
				
			||||||
 | 
					export HOMEBREW_LIBRARY
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Use VISUAL if HOMEBREW_EDITOR and EDITOR are unset.
 | 
					# Use VISUAL if HOMEBREW_EDITOR and EDITOR are unset.
 | 
				
			||||||
if [[ -z "$HOMEBREW_EDITOR" && -n "$VISUAL" ]]
 | 
					if [[ -z "$HOMEBREW_EDITOR" && -n "$VISUAL" ]]
 | 
				
			||||||
then
 | 
					then
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user