From ea2f858afece307619b1e83b2a36b5d91bbc731e Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Mon, 25 Aug 2025 14:38:11 +0530 Subject: [PATCH] Move to main branch for brew --- src/scripts/darwin.sh | 4 ++-- src/scripts/tools/brew.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/scripts/darwin.sh b/src/scripts/darwin.sh index 800d3969..5a2970f6 100644 --- a/src/scripts/darwin.sh +++ b/src/scripts/darwin.sh @@ -134,9 +134,9 @@ patch_brew() { update_dependencies() { patch_brew if ! [ -e /tmp/update_dependencies ]; then - for repo in "$brew_repo" "$core_repo"; do + for repo in "$brew_repo" "${core_repo:?}"; do if [ -e "$repo" ]; then - git_retry -C "$repo" fetch origin master && git -C "$repo" reset --hard origin/master + git_retry -C "$repo" fetch origin main && git -C "$repo" reset --hard origin/main fi done echo '' | sudo tee /tmp/update_dependencies >/dev/null 2>&1 diff --git a/src/scripts/tools/brew.sh b/src/scripts/tools/brew.sh index 801b99d1..abd44db9 100644 --- a/src/scripts/tools/brew.sh +++ b/src/scripts/tools/brew.sh @@ -49,7 +49,7 @@ add_brew() { brew_prefix="$(get_brew_prefix)" if ! [ -d "$brew_prefix"/bin ]; then step_log "Setup Brew" - get -s "" "/tmp/install.sh" "https://raw.githubusercontent.com/Homebrew/install/master/install.sh" | bash -s >/dev/null 2>&1 + get -s "" "/tmp/install.sh" "https://raw.githubusercontent.com/Homebrew/install/main/install.sh" | bash -s >/dev/null 2>&1 add_log "${tick:?}" "Brew" "Installed Homebrew" fi add_brew_bins_to_path "$brew_prefix"