Run configure_pecl only when ini_files are set

This commit is contained in:
Shivam Mathur 2022-10-24 10:30:28 +05:30
parent d2efbcd126
commit 89f4f7e8be
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A

View File

@ -120,6 +120,7 @@ disable_all_shared() {
# Function to configure PECL.
configure_pecl() {
[ -z "${pecl_file:-${ini_file[@]}}" ] && return
if ! [ -e /tmp/pecl_config ]; then
for script in pear pecl; do
sudo "$script" config-set php_ini "${pecl_file:-${ini_file[@]}}"