From a9267748e8b2461e7ec9d8e4af0d7fee8d8770f3 Mon Sep 17 00:00:00 2001 From: Filip Gralinski Date: Sat, 12 Feb 2022 12:14:17 +0100 Subject: [PATCH] Fix bug with contribution --- hooks/post_gen_project.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hooks/post_gen_project.sh b/hooks/post_gen_project.sh index 3e64221..ca12880 100755 --- a/hooks/post_gen_project.sh +++ b/hooks/post_gen_project.sh @@ -146,7 +146,12 @@ fi rm -rf _latex-templates _optional_files if [ -e .git ]; then - git checkout README.md main.tex abstract.tex preamble.tex metadata.tex bibliography.bib contributions.yaml + git checkout README.md main.tex abstract.tex preamble.tex metadata.tex bibliography.bib + + if [ "{{ cookiecutter.contribution_declaration }}" = "yes" ]; then + git checkout contributions.yaml + fi + for f in helpers/vars abstract-pl.tex keywords.tex keywords-pl.tex appendix.tex do git checkout $f || true