bin/brew: remove unnecessary check
HOMEBREW_BASH_COMMAND variable will always exist. So we only need to check whether the corresponding file exist or not.
This commit is contained in:
		
							parent
							
								
									f9b33e26e0
								
							
						
					
					
						commit
						29c50d2567
					
				
							
								
								
									
										2
									
								
								bin/brew
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								bin/brew
									
									
									
									
									
								
							@ -143,7 +143,7 @@ EOS
 | 
			
		||||
  esac
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
if [ -n "$HOMEBREW_BASH_COMMAND" ] && [ -x "$HOMEBREW_BASH_COMMAND" ]
 | 
			
		||||
if [ -x "$HOMEBREW_BASH_COMMAND" ]
 | 
			
		||||
then
 | 
			
		||||
  # source rather than executing directly to ensure the entire file is read into
 | 
			
		||||
  # memory before it is run. This makes running a Bash script behave more like
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user