diff options
author | Dave Reisner <dreisner@archlinux.org> | 2012-10-06 03:11:22 +0200 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2012-10-21 21:25:46 +0200 |
commit | 2d8c7e66ae8db2eb8b7549d441669e3b26695198 (patch) | |
tree | 6689c8b59d09a21f359669c9efb238640afae4eb /functions | |
parent | db5eb12c7d711b451f9068a1dd00d6427f3ecc2e (diff) | |
download | mkinitcpio-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-- | functions | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |