Permalink
Browse files

Lion compability.

  • Loading branch information...
1 parent f246d4b commit 7502217953a8e8e5b56f0a531a16cfc14b825e82 Daniel Eriksson committed Sep 16, 2011
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 7502217

Please sign in to comment.