]> gitweb.fluxo.info Git - git-hooks.git/commitdiff
If the hooks are installed or not is important, put it on its own line in the output
authorBenjamin C Meyer <ben@meyerhome.net>
Sat, 19 Jun 2010 20:03:32 +0000 (16:03 -0400)
committerBenjamin C Meyer <ben@meyerhome.net>
Sat, 19 Jun 2010 20:03:32 +0000 (16:03 -0400)
Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
git-hooks

index 2756b5c455c24bbfe878de4547a39744cc448500..44f706d8c2b7a05cd9c0170d3c837ab2e1e1219f 100755 (executable)
--- 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}:"