mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-26 13:23:05 +07:00
Fix phalcon setup on Ubuntu
This commit is contained in:
parent
f24f33ea89
commit
da0e854737
@ -4,11 +4,10 @@ add_phalcon_helper() {
|
|||||||
if [ "$(uname -s)" = "Darwin" ]; then
|
if [ "$(uname -s)" = "Darwin" ]; then
|
||||||
add_brew_extension "$extension" extension
|
add_brew_extension "$extension" extension
|
||||||
else
|
else
|
||||||
if [ "$extension" = "phalcon4" ]; then
|
packages=("php${version:?}-$extension")
|
||||||
install_packages "php${version:?}-psr" "php${version:?}-$extension"
|
[ "$extension" = "phalcon4" ] && packages+=("php${version:?}-psr")
|
||||||
else
|
add_ppa ondrej/php >/dev/null 2>&1 || update_ppa ondrej/php
|
||||||
install_packages "php${version:?}-$extension"
|
check_package "${packages[0]}" && install_packages "${packages[@]}"
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user