diff options
author | Benjamin C Meyer <ben@meyerhome.net> | 2010-06-19 16:03:32 -0400 |
---|---|---|
committer | Benjamin C Meyer <ben@meyerhome.net> | 2010-06-19 16:03:32 -0400 |
commit | f4c3eb901856581d1441ba3b3a6698bae6fbb4f3 (patch) | |
tree | e994b6aa11c58aa8efb21b0cb6db8a027a8ce3ae | |
parent | e51e14ec519a8b8b07319d8a38f9610fb2738ffc (diff) | |
download | git-hooks-f4c3eb901856581d1441ba3b3a6698bae6fbb4f3.tar.gz git-hooks-f4c3eb901856581d1441ba3b3a6698bae6fbb4f3.tar.bz2 |
If the hooks are installed or not is important, put it on its own line in the output
Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
-rwxr-xr-x | git-hooks | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -116,12 +116,14 @@ function list_hooks done cat .git/hooks/pre-commit | grep 'git-hooks' > /dev/null 2> /dev/null if [ $? = 0 ] ; then - echo -n "Git hooks ARE installed in this repository." + echo "Git hooks ARE installed in this repository." + echo "" else - echo -n "Git hooks are NOT installed in this repository." + echo "Git hooks are NOT installed in this repository." + echo "" fi - echo ' Listing User, Project, and Global hooks:' + echo 'Listing User, Project, and Global hooks:' echo '---' for dir in `hook_dirs`; do echo "${dir}:" |