refactor: correct setup script

This commit is contained in:
Vlad 2021-01-07 18:46:47 +03:00
parent 9113f0b7df
commit 57c010f4f2
2 changed files with 1 additions and 11 deletions

View File

@ -55,7 +55,6 @@ def print_error_message():
print(colored_breaking_changes_message)
print_pattern(breaking_changes_commit_pattern)
print_available_commit_types()
def print_available_commit_types():

View File

@ -1,13 +1,4 @@
# Git version >= 2.9
# Enable githooks
git config core.hooksPath .githooks
# Git version < 2.9
HOOKS_FOLDER=.git/hooks
if [ ! -d $HOOKS_FOLDER ]; then
mkdir $HOOKS_FOLDER
fi
find .git/hooks -type l -exec rm {} \; && find .githooks -type f -exec ln -sf ../../{} .git/hooks/ \;
chmod +x .githooks