Update PPA before phalcon setup

This commit is contained in:
Shivam Mathur 2020-05-18 18:03:51 +05:30
parent 54afb29ef6
commit 00b0d694d0
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A

View File

@ -22,7 +22,6 @@ update_ppa() {
install_phalcon() {
extension=$1
version=$2
(sudo DEBIAN_FRONTEND=noninteractive apt-get install -y "php$version-$extension" >/dev/null 2>&1 && add_log "$tick" "$extension" "Installed and enabled") ||
(update_ppa && sudo DEBIAN_FRONTEND=noninteractive apt-get install -y "php$version-$extension" >/dev/null 2>&1 && add_log "$tick" "$extension" "Installed and enabled") ||
add_log "$cross" "$extension" "Could not install $extension on PHP $semver"
}