mirror of
https://github.com/super-linter/super-linter.git
synced 2024-12-23 05:02:15 -05:00
Don't override the PATH when installing Psalm (#2643)
This commit is contained in:
parent
2bcdb3d248
commit
c5e5046b8b
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue