From f4c3eb901856581d1441ba3b3a6698bae6fbb4f3 Mon Sep 17 00:00:00 2001 From: Benjamin C Meyer Date: Sat, 19 Jun 2010 16:03:32 -0400 Subject: If the hooks are installed or not is important, put it on its own line in the output Signed-off-by: Benjamin C Meyer --- git-hooks | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/git-hooks b/git-hooks index 2756b5c..44f706d 100755 --- a/git-hooks +++ b/git-hooks @@ -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}:" -- cgit v1.2.3