From: Benjamin C Meyer Date: Fri, 19 Mar 2010 06:45:15 +0000 (-0400) Subject: Display both the hook name and script name X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=0e1ef2f1029243352f81aa5bfe078115cb8628db;p=git-hooks.git Display both the hook name and script name Signed-off-by: Benjamin C Meyer --- diff --git a/git-hooks b/git-hooks index d7ddc7c..79e5ae8 100755 --- a/git-hooks +++ b/git-hooks @@ -50,7 +50,9 @@ function run_hooks shift 1 for hook in `list_hooks_in_dir "${dir}"` do - echo -e "@@ Running hook: `basename "${hook}"`" + echo -n "@@ Running hook: " + echo -n `basename \`dirname "${hook}"\`` + echo "/`basename "${hook}"`" ${hook} "$@" done }