Add a simple script to add community.general to a role.

This commit is contained in:
Robert de Bock 2021-09-20 09:23:41 +02:00
parent 7a912c4b32
commit aff158eb74
1 changed files with 13 additions and 0 deletions

13
community.general.sh Executable file
View File

@ -0,0 +1,13 @@
#!/bin/sh
if [ -f requirements.yml ] ; then
if ! grep 'collections:' requirements.yml > /dev/null ; then
echo "Adding collections header to requirements."
echo "collections:" >> requirements.yml
fi
if ! grep -- ' - name: community.general' requirements.yml > /dev/null ; then
echo "Adding community.general to requirement."
echo " - name: community.general" >> requirements.yml
fi
fi