From e70f6d9e7c760a33d9f0ca39476b2a6e3415c610 Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Sun, 1 Oct 2023 18:49:44 +0530 Subject: [PATCH] Fallback to pecl in add_brew_extension on macOS --- src/scripts/darwin.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/scripts/darwin.sh b/src/scripts/darwin.sh index 9398b0338..2dc25e1c3 100644 --- a/src/scripts/darwin.sh +++ b/src/scripts/darwin.sh @@ -62,8 +62,7 @@ add_brew_extension() { sudo mv "$tap_dir"/"$ext_tap"/.github/deps/"$formula"/* "${core_repo:?}/Formula/" 2>/dev/null || true update_dependencies >/dev/null 2>&1 disable_dependency_extensions "$extension" >/dev/null 2>&1 - brew install -f "$ext_tap/$formula@$version" >/dev/null 2>&1 - copy_brew_extensions "$formula" + (brew install -f "$ext_tap/$formula@$version" >/dev/null 2>&1 && copy_brew_extensions "$formula") || pecl_install "$extension" >/dev/null 2>&1 add_extension_log "$extension" "Installed and enabled" fi }