create-profile.sh: remove the core version from the config files
authorAntonio Ospite <ao2@ao2.it>
Tue, 21 Nov 2017 10:03:24 +0000 (11:03 +0100)
committerAntonio Ospite <ao2@ao2.it>
Tue, 21 Nov 2017 10:05:56 +0000 (11:05 +0100)
This is not strictly necessary but it makes the files a little cleaner.

libexec/create-profile.sh

index 96020b3..a48e75e 100755 (executable)
@@ -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"
 
 $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
 
 # Since the profile generated by `$DRUPAL_CONSOLE generate:profile` calls in
 # the standard profile, some duplicated config files could be removed in the