Use PECL directly for nightly versions

This commit is contained in:
Shivam Mathur 2020-10-28 22:21:08 +05:30
parent 87e62cbb7f
commit 5d27b8f90e
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A

View File

@ -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"