diff options
author | Benjamin C Meyer <ben@meyerhome.net> | 2010-06-19 16:01:16 -0400 |
---|---|---|
committer | Benjamin C Meyer <ben@meyerhome.net> | 2010-06-19 16:01:32 -0400 |
commit | 33ecf08e87c4d11a8698c7735e7bd33880cf4381 (patch) | |
tree | 128596b4e3592d1dea65fba3424c88a4b61f3bbc | |
parent | 0f7c343908bece283b7e4a7fa03f161f73466f72 (diff) | |
download | git-hooks-33ecf08e87c4d11a8698c7735e7bd33880cf4381.tar.gz git-hooks-33ecf08e87c4d11a8698c7735e7bd33880cf4381.tar.bz2 |
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 <ben@meyerhome.net>
-rwxr-xr-x | git-hooks | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |