diff --git a/gitapper.sh b/gitapper.sh index 93a6971..ca4d5ea 100755 --- a/gitapper.sh +++ b/gitapper.sh @@ -26,7 +26,7 @@ source $DIR/lib/forgit.sh function exec_hook() { command=($2) for EXT in "sh" "py" - do + do if [[ -f "$GITAPPER_HOOKS/$1-${command[0]}.$EXT" ]]; then if [[ $EXT == "sh" ]]; then . "$GITAPPER_HOOKS/$1-${command[0]}.$EXT" "$GIT" "$2 $3" diff --git a/readme.md b/readme.md index 1aec09d..8e85926 100644 --- a/readme.md +++ b/readme.md @@ -48,7 +48,7 @@ In this repository you can find various hooks with different requirements and us * Branch picker when no branch is passed will use Forgit with FZF * Pre-Clean * If no file passed will use the Forgit clean with FZF -* Pre-commit +* Pre-Commit * Validate the commit if `-m` parameter is defined following [ConventionalCommits](https://www.conventionalcommits.org/en/v1.0.0) * Pre-Diff * If no file passed will use the Forgit diff with FZF