Skip to content

Commit

Permalink
Merge pull request #3 from daniel/master
Browse files Browse the repository at this point in the history
Lion compability fix
  • Loading branch information
icefox committed Sep 16, 2011
2 parents f246d4b + 7502217 commit 26ddccb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions git-hooks
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 26ddccb

Please sign in to comment.