Add a simple script to add community.general to a role.
This commit is contained in:
parent
7a912c4b32
commit
aff158eb74
|
|
@ -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
|
||||
|
||||
Loading…
Reference in New Issue