Use PECL directly for nightly versions

This commit is contained in:
Shivam Mathur 2020-11-16 02:23:20 +05:30
parent d0591e6d7c
commit 3d5fae7917
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A

View File

@ -103,9 +103,12 @@ add_extension() {
elif check_extension "$extension"; then elif check_extension "$extension"; then
add_log "$tick" "$extension" "Enabled" add_log "$tick" "$extension" "Enabled"
elif ! check_extension "$extension"; then elif ! check_extension "$extension"; then
if [ "$version" = "8.0" ]; then
pecl_install "$extension"
else
eval "$install_command" >/dev/null 2>&1 || eval "$install_command" >/dev/null 2>&1 ||
(update_lists && eval "$install_command" >/dev/null 2>&1) || (update_lists && eval "$install_command" >/dev/null 2>&1) || pecl_install "$extension"
sudo pecl install -f "$extension" >/dev/null 2>&1 fi
(check_extension "$extension" && add_log "$tick" "$extension" "Installed and enabled") || (check_extension "$extension" && add_log "$tick" "$extension" "Installed and enabled") ||
add_log "$cross" "$extension" "Could not install $extension on PHP $semver" add_log "$cross" "$extension" "Could not install $extension on PHP $semver"
fi fi