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

8 lines
212 B
Bash

#!/usr/bin/env sh
if hash git 2>/dev/null; then
cd {{cookiecutter.collection_name}}
git init
git remote add origin gitea@{{ cookiecutter.git_server }}/xoxys.{{ cookiecutter.collection_name }}.git
fi