[arch-projects] [mkinitcpio] [PATCH 13/18] functions: only show the basename of a deprecated hook

Dave Reisner dreisner at archlinux.org
Fri Nov 23 18:48:58 EST 2012


Signed-off-by: Dave Reisner <dreisner at archlinux.org>
---
 functions | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/functions b/functions
index e370190..491fc6c 100644
--- a/functions
+++ b/functions
@@ -627,7 +627,8 @@ 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
 
-- 
1.8.0



More information about the arch-projects mailing list