mirror of
https://github.com/shivammathur/setup-php.git
synced 2025-10-20 10:15:09 +07:00
Add support to show error on add_extension_log
This commit is contained in:
@ -1,8 +1,10 @@
|
|||||||
# Function to log result of installing extension.
|
# Function to log result of installing extension.
|
||||||
add_extension_log() {
|
add_extension_log() {
|
||||||
(
|
if check_extension ${1%%-*}; then
|
||||||
check_extension "$(echo "$1" | cut -d '-' -f 1)" && add_log "${tick:?}" "$1" "$2"
|
add_log "${tick:?}" "$1" "$2"
|
||||||
) || add_log "${cross:?}" "$1" "Could not install $1 on PHP ${semver:?}"
|
else
|
||||||
|
add_log "${cross:?}" "$1" "${3:-Could not install $1 on PHP ${semver:?}}"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# Function to test if extension is loaded.
|
# Function to test if extension is loaded.
|
||||||
|
Reference in New Issue
Block a user