From 2d8c7e66ae8db2eb8b7549d441669e3b26695198 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Fri, 5 Oct 2012 21:11:22 -0400 Subject: functions: trim path of resolved symlink When reporting that a hook is deprecated, only show the hook name, not the full resolved path. Signed-off-by: Dave Reisner --- functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions b/functions index 5a75a79..d077213 100644 --- a/functions +++ b/functions @@ -664,7 +664,7 @@ run_build_hook() { error "$script is a broken symlink to $(readlink "$script")" return 1 fi - warning "Hook '%s' is deprecated. Replace it with '%s' in your config" "$script" "$realscript" + warning "Hook '%s' is deprecated. Replace it with '%s' in your config" "$script" "${realscript##*/}" script=$realscript fi -- cgit v1.2.3-24-g4f1b