Fix macOS patch to allow link libraries

This commit is contained in:
Shivam Mathur 2021-10-13 15:25:38 +05:30
parent 719018955c
commit e2e76ea34f
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A

View File

@ -132,7 +132,7 @@ patch_brew() {
# Helper function to update the dependencies.
update_dependencies_helper() {
dependency=$1
get -q -n "$tap_dir/homebrew/homebrew-core/Formula/$dependency.rb" "https://raw.githubusercontent.com/Homebrew/homebrew-core/master/Formula/$dependency.rb"
# get -q -n "$tap_dir/homebrew/homebrew-core/Formula/$dependency.rb" "https://raw.githubusercontent.com/Homebrew/homebrew-core/master/Formula/$dependency.rb"
link_libraries "$dependency"
}
@ -145,7 +145,7 @@ update_dependencies() {
(
cd "$tap_dir/homebrew/homebrew-core" || true
git add . && git stash && git pull origin master
) >/dev/null 2>&1 && return
) >/dev/null 2>&1
while read -r dependency; do
update_dependencies_helper "$dependency" &