Skip to content

Commit

Permalink
Fix logs on failure in add_pecl_extension
Browse files Browse the repository at this point in the history
  • Loading branch information
shivammathur committed Oct 24, 2022
1 parent 9068f2e commit e8836c6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/scripts/extensions/add_extensions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,9 @@ add_pecl_extension() {
disable_extension_helper "$extension" >/dev/null 2>&1
[ -n "$pecl_version" ] && pecl_version="-$pecl_version"
pecl_install "$extension$pecl_version" || add_extension "$extension" "$(get_extension_prefix "$extension")" >/dev/null 2>&1
add_extension_log "$extension-$(php -r "echo phpversion('$extension');")" "Installed and enabled"
extension_version="$(php -r "echo phpversion('$extension');")"
[ -n "$extension_version" ] && extension_version="-$extension_version"
add_extension_log "$extension$extension_version" "Installed and enabled"
fi
}

Expand Down

0 comments on commit e8836c6

Please sign in to comment.