diff options
author | Jeremy Dunck <jdunck@gmail.com> | 2011-10-18 10:55:33 -0700 |
---|---|---|
committer | Benjamin C Meyer <ben@meyerhome.net> | 2012-01-25 00:53:15 -0500 |
commit | cf6762c598acc2f3c9b89ad09fb869353760e366 (patch) | |
tree | 090def9af4ef435aa8a6f4c952f3d1e688490f61 | |
parent | a0dd1a48585246d3d7ee4be8342d3e3763578bdd (diff) | |
download | git-hooks-cf6762c598acc2f3c9b89ad09fb869353760e366.tar.gz git-hooks-cf6762c598acc2f3c9b89ad09fb869353760e366.tar.bz2 |
Don't re-install.
Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
-rwxr-xr-x | git-hooks | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |