summaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-10-06 03:11:22 +0200
committerDave Reisner <dreisner@archlinux.org>2012-10-21 21:25:46 +0200
commit2d8c7e66ae8db2eb8b7549d441669e3b26695198 (patch)
tree6689c8b59d09a21f359669c9efb238640afae4eb /functions
parentdb5eb12c7d711b451f9068a1dd00d6427f3ecc2e (diff)
downloadmkinitcpio-2d8c7e66ae8db2eb8b7549d441669e3b26695198.tar.gz
mkinitcpio-2d8c7e66ae8db2eb8b7549d441669e3b26695198.tar.xz
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 <dreisner@archlinux.org>
Diffstat (limited to 'functions')
-rw-r--r--functions2
1 files changed, 1 insertions, 1 deletions
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