aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eriksson <daniel.eriksson@bukowskis.com>2011-09-16 11:01:21 +0200
committerDaniel Eriksson <daniel.eriksson@bukowskis.com>2011-09-16 11:01:21 +0200
commit7502217953a8e8e5b56f0a531a16cfc14b825e82 (patch)
tree8b30d37ff476c2d387d37f4db99ba137d0df69f0
parentf246d4b42fef6cef320c333085d326a343802afe (diff)
downloadgit-hooks-7502217953a8e8e5b56f0a531a16cfc14b825e82.tar.gz
git-hooks-7502217953a8e8e5b56f0a531a16cfc14b825e82.tar.bz2
Lion compability.
-rwxr-xr-xgit-hooks4
1 files changed, 2 insertions, 2 deletions
diff --git a/git-hooks b/git-hooks
index 6389be6..33b1a64 100755
--- a/git-hooks
+++ b/git-hooks
@@ -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