Fix Composer global bin-dir path detection.
parent
14686f57ef
commit
b790e25693
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue