Add retry and timeout for stuck brew calls

This commit is contained in:
Shivam Mathur
2026-02-23 14:43:25 +05:30
parent f97ca00780
commit d042aafd13
6 changed files with 125 additions and 12 deletions

View File

@@ -60,7 +60,7 @@ add_linux_libs() {
add_darwin_libs() {
local lib=$1
if ! check_lib "$lib"; then
brew install "$lib" >/dev/null 2>&1 || true
safe_brew install "$lib" >/dev/null 2>&1 || true
if [[ "$lib" = *@* ]]; then
brew link --overwrite --force "$lib" >/dev/null 2>&1 || true
fi