mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-22 20:01:06 +07:00
Fix add_extension_log
This commit is contained in:
parent
c342ca379e
commit
a9a6d1986e
@ -35,12 +35,9 @@ add_log() {
|
|||||||
|
|
||||||
# Function to log result of installing extension.
|
# Function to log result of installing extension.
|
||||||
add_extension_log() {
|
add_extension_log() {
|
||||||
extension=$1
|
|
||||||
status=$2
|
|
||||||
extension_name=$(echo "$extension" | cut -d '-' -f 1)
|
|
||||||
(
|
(
|
||||||
check_extension "$extension_name" && add_log "$tick" "$extension_name" "$status"
|
check_extension "$(echo "$1" | cut -d '-' -f 1)" && add_log "$tick" "$1" "$2"
|
||||||
) || add_log "$cross" "$extension_name" "Could not install $extension on PHP ${semver:?}"
|
) || add_log "$cross" "$1" "Could not install $1 on PHP ${semver:?}"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Function to read env inputs.
|
# Function to read env inputs.
|
||||||
|
Loading…
Reference in New Issue
Block a user