cookiecutter-amu-thesis/hooks/pre_gen_project.sh

7 lines
172 B
Bash
Raw Normal View History

2019-12-02 18:02:20 +01:00
#!/bin/bash -xe
if [[ -e .git && ! -z "$(git status --untracked-files=no --porcelain)" ]]; then
>&2 echo "Uncommited changes, commit your changes first"
exit 1
fi