From: Antonio Ospite Date: Tue, 21 Nov 2017 10:03:24 +0000 (+0100) Subject: create-profile.sh: remove the core version from the config files X-Git-Tag: v0.1.0~10 X-Git-Url: https://git.ao2.it/drupal-init-tools.git/commitdiff_plain/88ff2332efdd054416d62f1b7e3827a9b60bf792?ds=inline create-profile.sh: remove the core version from the config files This is not strictly necessary but it makes the files a little cleaner. --- diff --git a/libexec/create-profile.sh b/libexec/create-profile.sh index 96020b3..a48e75e 100755 --- a/libexec/create-profile.sh +++ b/libexec/create-profile.sh @@ -99,8 +99,8 @@ cp -a "${WEB_ROOT}/profiles/${PROFILE_MACHINE_NAME}" "$PROJECT_ROOT" $DRUPAL_CONSOLE config:export --directory="${PROJECT_ROOT}/${PROFILE_MACHINE_NAME}/config/install" --remove-uuid --remove-config-hash rm "${PROJECT_ROOT}/${PROFILE_MACHINE_NAME}/config/install/core.extension.yml" -# The reference to the core version could be removed, but this is not strictly necessary -#find "${PROJECT_ROOT}/${PROFILE_MACHINE_NAME}/config/install" -type f -exec sed -i -e '/^_core: { }/d' {} \; +# The reference to the core version could be removed, even though it is not strictly necessary. +find "${PROJECT_ROOT}/${PROFILE_MACHINE_NAME}/config/install" -type f -exec sed -i -e '/^_core: { }/d' {} \; # Since the profile generated by `$DRUPAL_CONSOLE generate:profile` calls in # the standard profile, some duplicated config files could be removed in the