Permalink
Browse files

Merge pull request #3 from daniel/master

Lion compability fix
  • Loading branch information...
icefox committed Sep 16, 2011
2 parents f246d4b + 7502217 commit 26ddccb6b4a7c2d57ff1ef14d3bab2246444cf5e
Showing with 2 additions and 2 deletions.
  1. +2 −2 git-hooks
View
@@ -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

0 comments on commit 26ddccb

Please sign in to comment.