From 88ff2332efdd054416d62f1b7e3827a9b60bf792 Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Tue, 21 Nov 2017 11:03:24 +0100 Subject: [PATCH] create-profile.sh: remove the core version from the config files This is not strictly necessary but it makes the files a little cleaner. --- libexec/create-profile.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.1.4