diff --git a/README.md b/README.md index 340f578..a07e2af 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ # Generic-Template -Bsaic Template Repository with workflow items present +Bsaic Template Repository with workflow items present. diff --git a/setup.sh b/setup.sh index 3f057f7..380d17e 100755 --- a/setup.sh +++ b/setup.sh @@ -15,15 +15,13 @@ cat << 'EOF' > "$HOOK_LOCATION" #!/bin/sh # # Git hook to check for semantic commit messages in the form mentioned here -# -# https://seesparkbox.com/foundry/semantic_commit_messages -export TYPE=$(cut -d ':' -f1 < "$1" | xargs) -export VERB=$(cut -d ':' -f2 | cut -d ' ' -f2 < "$1") -(echo "$TYPE" | egrep '^(feat|chore|docs|fix|refactor|style|test)$' > /dev/null) || (echo "Missing type feat|chore|docs|fix|refactor|style|test"; exit 1) +export VERB=$(cut -d ' ' -f1 < "$1") (grep "$VERB" .git/hooks/verbs.txt > /dev/null) || (echo "Missing a verb"; exit 1) EOF +chmod +x $HOOK_LOCATION + cat << 'EOF' > "$VERB_LOCATION" Remove Delete