]> gitweb.fluxo.info Git - git-hooks.git/commitdiff
Lion compability.
authorDaniel Eriksson <daniel.eriksson@bukowskis.com>
Fri, 16 Sep 2011 09:01:21 +0000 (11:01 +0200)
committerDaniel Eriksson <daniel.eriksson@bukowskis.com>
Fri, 16 Sep 2011 09:01:21 +0000 (11:01 +0200)
git-hooks

index 6389be613630b6531c6b8fce42cebf651cf792ef..33b1a64427d993f59b78cc7853cbf41d9057e985 100755 (executable)
--- 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