diff --git a/copy-template-into-existing-project.sh b/copy-template-into-existing-project.sh index b335895..1961f6b 100755 --- a/copy-template-into-existing-project.sh +++ b/copy-template-into-existing-project.sh @@ -7,6 +7,8 @@ set -eu # Run this script from the working directory of that project # ~/git/typescript-node-module-boilerplate/copy-template-into-existing-project.sh +git diff --quiet || (echo "repo unclean. stage or commit first" && exit 1) + name=$(basename "$PWD") templatedir="$(dirname "$0")"