mirror of
				https://github.com/shivammathur/setup-php.git
				synced 2025-11-04 08:56:36 +07:00 
			
		
		
		
	Fix updating homebrew dependencies after sharding in core tap
This commit is contained in:
		@ -126,7 +126,8 @@ patch_brew() {
 | 
			
		||||
# Helper function to update the dependencies.
 | 
			
		||||
update_dependencies_helper() {
 | 
			
		||||
  dependency=$1
 | 
			
		||||
  get -q -n "$core_repo/Formula/$dependency.rb" "https://raw.githubusercontent.com/Homebrew/homebrew-core/master/Formula/$dependency.rb"
 | 
			
		||||
  [[ "${dependency:0:3}" = "lib" ]] && prefix=lib || prefix="${dependency:0:1}"
 | 
			
		||||
  get -q -n "$core_repo/Formula/$prefix/$dependency.rb" "https://raw.githubusercontent.com/Homebrew/homebrew-core/master/Formula/$prefix/$dependency.rb"
 | 
			
		||||
  link_libraries "$dependency"
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user