From: Antonio Ospite Date: Sat, 10 Mar 2018 14:58:30 +0000 (+0100) Subject: bootstrap.sh: stop using the deprecated drush "pm-info" command X-Git-Tag: v0.1.2~18 X-Git-Url: https://git.ao2.it/drupal-init-tools.git/commitdiff_plain/cf94204e8dbb7c5603807f95c244d6531c41061b?ds=sidebyside;hp=12f18b8456f9e90c565e7da6f1de0a81fb3493da bootstrap.sh: stop using the deprecated drush "pm-info" command This fixes the following drush error: The pm-info command was deprecated. Please see `drush pm:list` and `composer show` While at it also use an exact pattern for the module name, this avoids matching against other modules which may contain the word 'locale' in their names. --- diff --git a/libexec/bootstrap.sh b/libexec/bootstrap.sh index e3671c0..9ea3c32 100755 --- a/libexec/bootstrap.sh +++ b/libexec/bootstrap.sh @@ -156,7 +156,7 @@ $DRUSH --verbose --yes \ --account-mail="$ACCOUNT_MAIL" \ "$INSTALLATION_PROFILE" -if $DRUSH pm-info --fields=status locale | grep -q enabled; +if $DRUSH pm-list --type=module --field=name --status=enabled --pipe | grep -q "^locale$"; then # This is necessary for multi-language sites, it fixes some issues like: # "The Translation source field needs to be installed."