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

8 lines
212 B
Bash
Raw Normal View History

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