From: Antonio Ospite Date: Sat, 10 Mar 2018 19:15:57 +0000 (+0100) Subject: create-profile.sh: fix pm-list invocation to be compatible with Drush 9 X-Git-Tag: v0.1.2~15 X-Git-Url: https://git.ao2.it/drupal-init-tools.git/commitdiff_plain/cd743defc40ca012b819aac0d40feeffefdc79db?ds=sidebyside create-profile.sh: fix pm-list invocation to be compatible with Drush 9 And while at it also strip the last comma in the generated list. --- diff --git a/libexec/create-profile.sh b/libexec/create-profile.sh index fae4bcc..aa627b0 100755 --- a/libexec/create-profile.sh +++ b/libexec/create-profile.sh @@ -81,8 +81,8 @@ pushd "$WEB_ROOT" # However getting them before exporting the configuration and generating the # profile is cleaner. # -ENABLED_MODULES="$($DRUSH pm-list --type=module --status=enabled --pipe | tr '\n' ',')" -ENABLED_THEMES="$($DRUSH pm-list --type=theme --status=enabled --pipe | tr '\n' ',')" +ENABLED_MODULES="$($DRUSH pm-list --type=module --field=name --status=enabled --pipe | tr '\n' ',' | sed 's/,$//')" +ENABLED_THEMES="$($DRUSH pm-list --type=theme --field=name --status=enabled --pipe | tr '\n' ',' | sed 's/,$//')" $DRUPAL_CONSOLE generate:profile \ --profile="$PROFILE_TITLE" \