Skip to content

Instantly share code, notes, and snippets.

@fmfpereira
Created December 18, 2017 18:02
Show Gist options
  • Save fmfpereira/4186d4e40b09b2b49f2a4c91576be78c to your computer and use it in GitHub Desktop.
Save fmfpereira/4186d4e40b09b2b49f2a4c91576be78c to your computer and use it in GitHub Desktop.
Remove uuid, _core and default_config_hash from Drupal 8.x profile install config files.
sed -i "/^uuid:/d;/^_core:/d;/^ default_config_hash:/d" *
@vvidovic
Copy link

Using the yq comand:

find private/config/sync/ | grep .yml | xargs -I % yq -i e 'del(.uuid, ._core)' %

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment