diff options
author | Benjamin C Meyer <ben@meyerhome.net> | 2012-01-25 00:37:31 -0500 |
---|---|---|
committer | Benjamin C Meyer <ben@meyerhome.net> | 2012-01-25 00:39:12 -0500 |
commit | 09b39381ecff895d4b3d6f340390ae71af727f2a (patch) | |
tree | 38c72d2975c97ae15bca1d22f004640808e00ade | |
parent | 745105dd3208e9dcfb1e30f18844d67360f01d37 (diff) | |
download | git-hooks-09b39381ecff895d4b3d6f340390ae71af727f2a.tar.gz git-hooks-09b39381ecff895d4b3d6f340390ae71af727f2a.tar.bz2 |
Remove non-posix shell command flags which is causing problems across OS's.
Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
-rwxr-xr-x | git-hooks | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -43,11 +43,7 @@ function hook_dirs function list_hooks_in_dir { - if [[ $OSTYPE =~ 'darwin' ]] ; then - find "${1}/" -type f 2>/dev/null | grep -v "^.$" | sort - else - find "${1}/" -executable -type f 2>/dev/null | grep -v "^.$" | sort -V - fi + find "${1}/" -perm +111 -type f 2>/dev/null | grep -v "^.$" | sort } function run_hooks |