Permalink
Browse files

Don't re-install.

Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
  • Loading branch information...
1 parent a0dd1a4 commit cf6762c598acc2f3c9b89ad09fb869353760e366 @jdunck jdunck committed with Oct 18, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 git-hooks
View
@@ -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

0 comments on commit cf6762c

Please sign in to comment.