cookiecutter-ansible-collec.../hooks/post_gen_project.sh

8 lines
212 B
Bash
Raw Normal View History

2020-08-17 18:47:55 +00:00
#!/usr/bin/env sh
if hash git 2>/dev/null; then
2020-08-17 19:07:35 +00:00
cd {{cookiecutter.collection_name}}
2020-08-17 18:47:55 +00:00
git init
git remote add origin gitea@{{ cookiecutter.git_server }}/xoxys.{{ cookiecutter.collection_name }}.git
fi