From e554590514d3e0c8a414d7c7e8ea2df5501e20b6 Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Mon, 31 Jan 2022 19:16:13 +0530 Subject: [PATCH] Fix http extension setup --- src/scripts/extensions/http.sh | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/scripts/extensions/http.sh b/src/scripts/extensions/http.sh index fbe9c27c..abd2a06f 100644 --- a/src/scripts/extensions/http.sh +++ b/src/scripts/extensions/http.sh @@ -19,15 +19,6 @@ enable_http() { fi } -# Function to install extensions. -add_extension_helper() { - if [ "$os" = "Linux" ]; then - add_extension "$1" extension - else - add_brew_extension "$1" extension - fi -} - # Function to install http dependencies. add_http_dependencies() { if [[ ${version:?} =~ ${old_versions:?} ]]; then @@ -78,8 +69,8 @@ add_http_helper() { add_http_latest() { enable_http if ! check_extension http; then - add_http_dependencies if [ "$os" = "Linux" ]; then + add_http_dependencies package="php$version-http" add_ppa ondrej/php >/dev/null 2>&1 || update_ppa ondrej/php (check_package "$package" && install_packages "$package") || add_http_helper "$(get_http_version)" "$os"