From f16902fca34a7ba5d352cdbc4adc31f426c418f8 Mon Sep 17 00:00:00 2001 From: Sergey Belov Date: Mon, 13 Feb 2012 10:59:40 +0200 Subject: Fix icefox/git-hooks#9: -L arg to find must precede path to find from --- git-hooks | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-hooks b/git-hooks index fdb7d94..a0e2dc5 100755 --- a/git-hooks +++ b/git-hooks @@ -43,7 +43,7 @@ function hook_dirs function list_hooks_in_dir { - find "${1}/" -L -perm +111 -type f 2>/dev/null | grep -v "^.$" | sort + find -L "${1}/" -perm +111 -type f 2>/dev/null | grep -v "^.$" | sort } function run_hooks -- cgit v1.2.3