Skip to content
This repository
Browse code

Merge pull request #3 from daniel/master

Lion compability fix
  • Loading branch information...
commit 26ddccb6b4a7c2d57ff1ef14d3bab2246444cf5e 2 parents f246d4b + 7502217
Benjamin C Meyer authored September 16, 2011

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  git-hooks
4  git-hooks
@@ -43,8 +43,8 @@ function hook_dirs
43 43
 
44 44
 function list_hooks_in_dir
45 45
 {
46  
-    if [ $OSTYPE = "darwin10.0" ] ; then
47  
-        find "${1}/" -executable -type f 2>/dev/null | grep -v "^.$" | sort
  46
+	  if [[ $OSTYPE =~ 'darwin' ]] ; then	
  47
+        find "${1}/" -type f 2>/dev/null | grep -v "^.$" | sort
48 48
     else
49 49
         find "${1}/" -executable -type f 2>/dev/null | grep -v "^.$" | sort -V
50 50
     fi

0 notes on commit 26ddccb

Please sign in to comment.
Something went wrong with that request. Please try again.