aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xgit-hooks4
1 files changed, 4 insertions, 0 deletions
diff --git a/git-hooks b/git-hooks
index 40dad0a..fdb7d94 100755
--- a/git-hooks
+++ b/git-hooks
@@ -93,6 +93,10 @@ function install_hooks
fi
cd $GITDIR
if [ "${1}" = "--install" ] ; then
+ if [ -d hooks.old ] ; then
+ echo "hooks.old already exists, perhaps you already installed?"
+ return 1
+ fi
mv hooks hooks.old
mkdir hooks
cd hooks