From: Antonio Ospite Date: Fri, 16 Mar 2018 12:31:17 +0000 (+0100) Subject: create-profile.sh: make detection of the default_content module more robust X-Git-Tag: v0.1.2~5 X-Git-Url: https://git.ao2.it/drupal-init-tools.git/commitdiff_plain/e8e93f39e2a93a09156b0e79a24d789454884c9c?hp=e8e93f39e2a93a09156b0e79a24d789454884c9c create-profile.sh: make detection of the default_content module more robust Do not just grep on "$ENABLED_MODULES" which is a comma-separated list on which is harder to match for the exact module name. Use instead the output of pm-list which has one module name for each line, this way it is easier to match for the exact name of "default_content" and avoid picking up other modules which may contain the string "default_content" in their names. ---