Fix extension logs

This commit is contained in:
Shivam Mathur 2021-08-24 19:29:33 +05:30
parent 4f420be5bd
commit 2cb9b82943
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ self_hosted_helper() {
# Function to install a package
install_packages() {
packages=("$@")
[[ "${packages[*]}" =~ php ]] && add_ppa ondrej/php
[[ "${packages[*]}" =~ php ]] && add_ppa ondrej/php >/dev/null 2>&1
$apt_install "${packages[@]}" >/dev/null 2>&1 || (update_lists && $apt_install "${packages[@]}" >/dev/null 2>&1)
}

View File

@ -56,7 +56,7 @@ update_lists() {
elif grep -Eq '^deb ' "$list_file"; then
list="$list_file"
fi
update_lists_helper "$list"
update_lists_helper "$list" >/dev/null 2>&1
echo '' | tee /tmp/setup_php >/dev/null 2>&1
fi
}