Don't override the PATH when installing Psalm (#2643)

This commit is contained in:
Marco Ferrari 2022-03-23 17:43:28 +01:00 committed by GitHub
parent 2bcdb3d248
commit c5e5046b8b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -418,10 +418,10 @@ function RunAdditionalInstalls() {
############################################ ############################################
if [ "${#COMPOSER_FILE_ARRAY[@]}" -ne 0 ]; then if [ "${#COMPOSER_FILE_ARRAY[@]}" -ne 0 ]; then
for LINE in "${COMPOSER_FILE_ARRAY[@]}"; do for LINE in "${COMPOSER_FILE_ARRAY[@]}"; do
PATH=$(dirname "${LINE}" 2>&1) COMPOSER_PATH=$(dirname "${LINE}" 2>&1)
info "Found [composer.json] at:[${LINE}]" info "Found [composer.json] at:[${LINE}]"
COMPOSER_CMD=$( COMPOSER_CMD=$(
cd "${PATH}" || exit 1 cd "${COMPOSER_PATH}" || exit 1
composer install --no-progress -q 2>&1 composer install --no-progress -q 2>&1
) )
@ -435,7 +435,7 @@ function RunAdditionalInstalls() {
############################## ##############################
if [ "${ERROR_CODE}" -ne 0 ]; then if [ "${ERROR_CODE}" -ne 0 ]; then
# Error # 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}]" fatal "ERROR:[${COMPOSER_CMD}]"
else else
# Success # Success