From a9a6d1986e19a3e6ec60803cc7b05af822205af3 Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Thu, 11 Mar 2021 08:58:47 +0530 Subject: [PATCH] Fix add_extension_log --- src/scripts/common.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/scripts/common.sh b/src/scripts/common.sh index 091587b6..f0171237 100644 --- a/src/scripts/common.sh +++ b/src/scripts/common.sh @@ -35,12 +35,9 @@ add_log() { # Function to log result of installing extension. 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" - ) || add_log "$cross" "$extension_name" "Could not install $extension on PHP ${semver:?}" + check_extension "$(echo "$1" | cut -d '-' -f 1)" && add_log "$tick" "$1" "$2" + ) || add_log "$cross" "$1" "Could not install $1 on PHP ${semver:?}" } # Function to read env inputs.