From: Jeremy Dunck Date: Tue, 18 Oct 2011 17:55:33 +0000 (-0700) Subject: Don't re-install. X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=cf6762c598acc2f3c9b89ad09fb869353760e366;p=git-hooks.git Don't re-install. Signed-off-by: Benjamin C Meyer --- 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