summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-11-22 18:15:26 +0100
committerDave Reisner <dreisner@archlinux.org>2012-11-24 00:01:34 +0100
commit8b19be5a9fda9da678166d93a4ccc800f80614dd (patch)
treeabe19cd25f6e0c49f91c0008785c55450c916c64
parent3c961b3bc3cbffa7537575c8ea85d016a0342f24 (diff)
downloadmkinitcpio-8b19be5a9fda9da678166d93a4ccc800f80614dd.tar.gz
mkinitcpio-8b19be5a9fda9da678166d93a4ccc800f80614dd.tar.xz
functions: only show the basename of a deprecated hook
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
-rw-r--r--functions3
1 files changed, 2 insertions, 1 deletions
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