aboutsummaryrefslogtreecommitdiff
path: root/git-hooks
diff options
context:
space:
mode:
Diffstat (limited to 'git-hooks')
-rwxr-xr-xgit-hooks6
1 files changed, 5 insertions, 1 deletions
diff --git a/git-hooks b/git-hooks
index 3cce242..89f26a8 100755
--- a/git-hooks
+++ b/git-hooks
@@ -43,7 +43,11 @@ function hook_dirs
function list_hooks_in_dir
{
- find "${1}/" -executable -type f 2>/dev/null | grep -v "^.$" | sort -V
+ if [ $OSTYPE = "darwin10.0" ] ; then
+ find "${1}/" -executable -type f 2>/dev/null | grep -v "^.$" | sort
+ else
+ find "${1}/" -executable -type f 2>/dev/null | grep -v "^.$" | sort -V
+ fi
}
function run_hooks