brew.sh: only setup/install Ruby when running Ruby.
This commit is contained in:
		
							parent
							
								
									5a2eaf9a12
								
							
						
					
					
						commit
						dd14357b48
					
				@ -209,11 +209,6 @@ EOS
 | 
			
		||||
  esac
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
# Hide shellcheck complaint:
 | 
			
		||||
# shellcheck source=/dev/null
 | 
			
		||||
source "$HOMEBREW_LIBRARY/Homebrew/utils/ruby.sh"
 | 
			
		||||
setup-ruby-path
 | 
			
		||||
 | 
			
		||||
# Hide shellcheck complaint:
 | 
			
		||||
# shellcheck source=/dev/null
 | 
			
		||||
source "$HOMEBREW_LIBRARY/Homebrew/utils/analytics.sh"
 | 
			
		||||
@ -243,6 +238,11 @@ then
 | 
			
		||||
  source "$HOMEBREW_BASH_COMMAND"
 | 
			
		||||
  { update-preinstall; "homebrew-$HOMEBREW_COMMAND" "$@"; exit $?; }
 | 
			
		||||
else
 | 
			
		||||
  # Hide shellcheck complaint:
 | 
			
		||||
  # shellcheck source=/dev/null
 | 
			
		||||
  source "$HOMEBREW_LIBRARY/Homebrew/utils/ruby.sh"
 | 
			
		||||
  setup-ruby-path
 | 
			
		||||
 | 
			
		||||
  # Unshift command back into argument list (unless argument list was empty).
 | 
			
		||||
  [[ "$HOMEBREW_ARG_COUNT" -gt 0 ]] && set -- "$HOMEBREW_COMMAND" "$@"
 | 
			
		||||
  { update-preinstall; exec "$HOMEBREW_RUBY_PATH" -W0 "$HOMEBREW_LIBRARY/brew.rb" "$@"; }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user