Skip to content

Commit

Permalink
chore(copy): prevent running in unclean repo
Browse files Browse the repository at this point in the history
Does not work with untracked files
  • Loading branch information
EdJoPaTo committed Feb 21, 2024
1 parent c561d35 commit d9cdb65
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions copy-template-into-existing-project.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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")"

Expand Down

0 comments on commit d9cdb65

Please sign in to comment.