From cf94204e8dbb7c5603807f95c244d6531c41061b Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Sat, 10 Mar 2018 15:58:30 +0100 Subject: [PATCH] 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. --- libexec/bootstrap.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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." -- 2.1.4