From 5d27b8f90ea9479ac7af4fcaad6b411eb19d7170 Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Wed, 28 Oct 2020 22:21:08 +0530 Subject: [PATCH] Use PECL directly for nightly versions --- src/scripts/linux.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/scripts/linux.sh b/src/scripts/linux.sh index b939da8a..8224e6fe 100644 --- a/src/scripts/linux.sh +++ b/src/scripts/linux.sh @@ -186,8 +186,12 @@ add_extension() { if [[ "$version" =~ 5.[4-5] ]]; then install_command="update_lists && ${install_command/5\.[4-5]-$extension/5-$extension=$release_version}" fi - eval "$install_command" >/dev/null 2>&1 || - (update_lists && eval "$install_command" >/dev/null 2>&1) || pecl_install "$extension" + if [[ "$version" =~ $nightly_versions ]]; then + pecl_install "$extension" + else + eval "$install_command" >/dev/null 2>&1 || + (update_lists && eval "$install_command" >/dev/null 2>&1) || pecl_install "$extension" + fi add_extension_log "$extension" "Installed and enabled" fi sudo chmod 777 "$ini_file"