Skip to content

Commit

Permalink
Add patch to update brew core repo
Browse files Browse the repository at this point in the history
  • Loading branch information
shivammathur committed Oct 6, 2021
1 parent 4ce6f3c commit dab978c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/scripts/darwin.sh
Expand Up @@ -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+=($!)
Expand Down

0 comments on commit dab978c

Please sign in to comment.