Install only cli on linux

This commit is contained in:
Shivam Mathur 2020-07-11 23:00:50 +05:30
parent 5fc5a95363
commit 8dee767b82
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A

View File

@ -361,8 +361,8 @@ php_semver() {
# Function to install packaged PHP # Function to install packaged PHP
add_packaged_php() { add_packaged_php() {
update_lists update_lists
IFS=' ' read -r -a packages <<< "$(echo "curl mbstring xml intl" | sed "s/[^ ]*/php$version-&/g")" IFS=' ' read -r -a packages <<< "$(echo "cli curl mbstring xml intl" | sed "s/[^ ]*/php$version-&/g")"
$apt_install php"$version" "${packages[@]}" $apt_install "${packages[@]}"
} }
# Function to update PHP. # Function to update PHP.