From c5e5046b8b0dc3fd997b7bc947cc1813a6640a0a Mon Sep 17 00:00:00 2001 From: Marco Ferrari Date: Wed, 23 Mar 2022 17:43:28 +0100 Subject: [PATCH] Don't override the PATH when installing Psalm (#2643) --- lib/functions/detectFiles.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/functions/detectFiles.sh b/lib/functions/detectFiles.sh index 2766d73b..4cd79ec5 100755 --- a/lib/functions/detectFiles.sh +++ b/lib/functions/detectFiles.sh @@ -418,10 +418,10 @@ function RunAdditionalInstalls() { ############################################ if [ "${#COMPOSER_FILE_ARRAY[@]}" -ne 0 ]; then for LINE in "${COMPOSER_FILE_ARRAY[@]}"; do - PATH=$(dirname "${LINE}" 2>&1) + COMPOSER_PATH=$(dirname "${LINE}" 2>&1) info "Found [composer.json] at:[${LINE}]" COMPOSER_CMD=$( - cd "${PATH}" || exit 1 + cd "${COMPOSER_PATH}" || exit 1 composer install --no-progress -q 2>&1 ) @@ -435,7 +435,7 @@ function RunAdditionalInstalls() { ############################## if [ "${ERROR_CODE}" -ne 0 ]; then # Error - error "ERROR! Failed to run composer install at location:[${PATH}]" + error "ERROR! Failed to run composer install at location:[${COMPOSER_PATH}]" fatal "ERROR:[${COMPOSER_CMD}]" else # Success