mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-23 04:11:06 +07:00
Use PECL directly for nightly versions
This commit is contained in:
parent
d0591e6d7c
commit
3d5fae7917
@ -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
|
||||||
eval "$install_command" >/dev/null 2>&1 ||
|
if [ "$version" = "8.0" ]; then
|
||||||
(update_lists && eval "$install_command" >/dev/null 2>&1) ||
|
pecl_install "$extension"
|
||||||
sudo pecl install -f "$extension" >/dev/null 2>&1
|
else
|
||||||
|
eval "$install_command" >/dev/null 2>&1 ||
|
||||||
|
(update_lists && eval "$install_command" >/dev/null 2>&1) || pecl_install "$extension"
|
||||||
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user