From: Benjamin C Meyer Date: Sat, 19 Jun 2010 20:01:16 +0000 (-0400) Subject: When listing hooks, the dir should always be a dir, so add / to the end of the dir... X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=33ecf08e87c4d11a8698c7735e7bd33880cf4381;p=git-hooks.git When listing hooks, the dir should always be a dir, so add / to the end of the dir. This allows the dir to be a symlink. Signed-off-by: Benjamin C Meyer --- diff --git a/git-hooks b/git-hooks index bab2b5d..1921f36 100755 --- a/git-hooks +++ b/git-hooks @@ -40,7 +40,7 @@ function hook_dirs function list_hooks_in_dir { - find "${1}" -executable -type f 2>/dev/null | grep -v "^.$" | sort -V + find "${1}/" -executable -type f 2>/dev/null | grep -v "^.$" | sort -V } function run_hooks