Skip warning about running Composer with root user.

master
Icedream 2021-01-19 17:40:01 +01:00
parent aa8a1c6d72
commit 299cc8a876
Signed by: icedream
GPG Key ID: 1573F6D8EFE4D0CF
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ section_end
# composer # composer
section "composer" section "composer"
if [ $PROFILE_COMPOSER -gt 0 ]; then if [ $PROFILE_COMPOSER -gt 0 ]; then
composer_path="$(composer global config --global --absolute bin-dir -q)" composer_path="$(COMPOSER_ALLOW_SUPERUSER=1 composer global config --global --absolute bin-dir -q)"
if [ -n "$composer_path" ] if [ -n "$composer_path" ]
then then
log "Detected composer bin path: $composer_path" log "Detected composer bin path: $composer_path"