aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin C Meyer <ben@meyerhome.net>2010-06-19 16:03:32 -0400
committerBenjamin C Meyer <ben@meyerhome.net>2010-06-19 16:03:32 -0400
commitf4c3eb901856581d1441ba3b3a6698bae6fbb4f3 (patch)
treee994b6aa11c58aa8efb21b0cb6db8a027a8ce3ae
parente51e14ec519a8b8b07319d8a38f9610fb2738ffc (diff)
downloadgit-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-xgit-hooks8
1 files 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}:"