diff --git a/src/scripts/darwin.sh b/src/scripts/darwin.sh index 2dc25e1c3..9f75a3444 100644 --- a/src/scripts/darwin.sh +++ b/src/scripts/darwin.sh @@ -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" }