From: Benjamin C Meyer Date: Wed, 25 Jan 2012 05:10:16 +0000 (-0500) Subject: Fix whitespace errors introduced by X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=745105dd3208e9dcfb1e30f18844d67360f01d37;p=git-hooks.git Fix whitespace errors introduced by 7502217953a8e8e5b56f0a531a16cfc14b825e82 Signed-off-by: Benjamin C Meyer --- diff --git a/LICENSE b/LICENSE index 62345f6..a7abbca 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -# Copyright (c) 2010-2011, Benjamin C. Meyer +# Copyright (c) 2010-2012, Benjamin C. Meyer # All rights reserved. # # Redistribution and use in source and binary forms, with or without diff --git a/git-hooks b/git-hooks index d1b1f6e..3523c1b 100755 --- a/git-hooks +++ b/git-hooks @@ -1,6 +1,6 @@ #!/bin/bash # -# Copyright (c) 2010-2011, Benjamin C. Meyer +# Copyright (c) 2010-2012, Benjamin C. Meyer # All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -43,7 +43,7 @@ function hook_dirs function list_hooks_in_dir { - if [[ $OSTYPE =~ 'darwin' ]] ; then + 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