Skip to content

Commit ea2f858

Browse files
committed
Move to main branch for brew
1 parent 507ff06 commit ea2f858

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/scripts/darwin.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,9 @@ patch_brew() {
134134
update_dependencies() {
135135
patch_brew
136136
if ! [ -e /tmp/update_dependencies ]; then
137-
for repo in "$brew_repo" "$core_repo"; do
137+
for repo in "$brew_repo" "${core_repo:?}"; do
138138
if [ -e "$repo" ]; then
139-
git_retry -C "$repo" fetch origin master && git -C "$repo" reset --hard origin/master
139+
git_retry -C "$repo" fetch origin main && git -C "$repo" reset --hard origin/main
140140
fi
141141
done
142142
echo '' | sudo tee /tmp/update_dependencies >/dev/null 2>&1

src/scripts/tools/brew.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ add_brew() {
4949
brew_prefix="$(get_brew_prefix)"
5050
if ! [ -d "$brew_prefix"/bin ]; then
5151
step_log "Setup Brew"
52-
get -s "" "/tmp/install.sh" "https://raw.githubusercontent.com/Homebrew/install/master/install.sh" | bash -s >/dev/null 2>&1
52+
get -s "" "/tmp/install.sh" "https://raw.githubusercontent.com/Homebrew/install/main/install.sh" | bash -s >/dev/null 2>&1
5353
add_log "${tick:?}" "Brew" "Installed Homebrew"
5454
fi
5555
add_brew_bins_to_path "$brew_prefix"

0 commit comments

Comments
 (0)