Fix Composer global bin-dir path detection.

master
Icedream 2020-07-01 14:22:56 +02:00
parent 14686f57ef
commit b790e25693
Signed by: icedream
GPG Key ID: 1573F6D8EFE4D0CF
1 changed files with 9 additions and 2 deletions

View File

@ -136,8 +136,15 @@ section_end
# composer # composer
section "composer" section "composer"
if [ $PROFILE_COMPOSER -gt 0 ]; then if [ $PROFILE_COMPOSER -gt 0 ]; then
PATH="$PATH:$(composer config --global --absolute bin-dir)" composer_path="$(composer global config --global --absolute bin-dir -q)"
if [ -n "$composer_path" ]
then
log "Detected composer bin path: $composer_path"
PATH="$PATH:$composer_path"
export PATH export PATH
else
log "No composer bin path detected."
fi
fi fi
section_end section_end