Use Homebrew API when the core tap is missing

This commit is contained in:
Shivam Mathur
2026-10-09 10:56:37 +05:30
parent 11b9f9a7f0
commit f5a207e3fa
2 changed files with 11 additions and 3 deletions
+5
View File
@@ -225,6 +225,11 @@ configure_brew() {
tap_dir="$brew_repo"/Library/Taps
core_repo="$tap_dir"/homebrew/homebrew-core
if [ -d "$core_repo" ]; then
export HOMEBREW_NO_INSTALL_FROM_API=1
else
unset HOMEBREW_NO_INSTALL_FROM_API
fi
export HOMEBREW_CHANGE_ARCH_TO_ARM=1
export HOMEBREW_NO_AUTO_UPDATE=1
export HOMEBREW_NO_ENV_HINTS=1