Fix phalcon setup on Ubuntu

This commit is contained in:
Shivam Mathur 2022-01-05 15:18:04 +05:30
parent f24f33ea89
commit da0e854737
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A

View File

@ -4,11 +4,10 @@ add_phalcon_helper() {
if [ "$(uname -s)" = "Darwin" ]; then
add_brew_extension "$extension" extension
else
if [ "$extension" = "phalcon4" ]; then
install_packages "php${version:?}-psr" "php${version:?}-$extension"
else
install_packages "php${version:?}-$extension"
fi
packages=("php${version:?}-$extension")
[ "$extension" = "phalcon4" ] && packages+=("php${version:?}-psr")
add_ppa ondrej/php >/dev/null 2>&1 || update_ppa ondrej/php
check_package "${packages[0]}" && install_packages "${packages[@]}"
fi
}