From dab978c436642aa454ad2099aa5355e20ac7d71f Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Wed, 6 Oct 2021 18:12:11 +0530 Subject: [PATCH] Add patch to update brew core repo --- src/scripts/darwin.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/scripts/darwin.sh b/src/scripts/darwin.sh index ed6742b3..bea6a0bd 100644 --- a/src/scripts/darwin.sh +++ b/src/scripts/darwin.sh @@ -140,6 +140,13 @@ update_dependencies_helper() { update_dependencies() { if ! [ -e /tmp/update_dependencies ] && [ "${runner:?}" != "self-hosted" ] && [ "${ImageOS:-}" != "" ] && [ "${ImageVersion:-}" != "" ]; then patch_brew + + # Remove this patch when brew is updated on the images. + ( + cd "$tap_dir/homebrew/homebrew-core" || true + git add . && git stash && git pull origin master + ) >/dev/null 2>&1 && return + while read -r dependency; do update_dependencies_helper "$dependency" & to_wait+=($!)