diff options
author | Benjamin C Meyer <ben@meyerhome.net> | 2011-09-16 07:37:12 -0700 |
---|---|---|
committer | Benjamin C Meyer <ben@meyerhome.net> | 2011-09-16 07:37:12 -0700 |
commit | 26ddccb6b4a7c2d57ff1ef14d3bab2246444cf5e (patch) | |
tree | 8b30d37ff476c2d387d37f4db99ba137d0df69f0 | |
parent | f246d4b42fef6cef320c333085d326a343802afe (diff) | |
parent | 7502217953a8e8e5b56f0a531a16cfc14b825e82 (diff) | |
download | git-hooks-26ddccb6b4a7c2d57ff1ef14d3bab2246444cf5e.tar.gz git-hooks-26ddccb6b4a7c2d57ff1ef14d3bab2246444cf5e.tar.bz2 |
Merge pull request #3 from daniel/master
Lion compability fix
-rwxr-xr-x | git-hooks | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -43,8 +43,8 @@ function hook_dirs function list_hooks_in_dir { - if [ $OSTYPE = "darwin10.0" ] ; then - find "${1}/" -executable -type f 2>/dev/null | grep -v "^.$" | sort + 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 |