diff options
author | Dave Reisner <dreisner@archlinux.org> | 2013-01-05 20:47:00 +0100 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2013-01-12 22:59:33 +0100 |
commit | a6b248d85d21b7a092d17b02e4be4e27f2227e98 (patch) | |
tree | 6e0fd1a2e24385b4d91df923c995c6cf67325c58 /functions | |
parent | 13f455b2a194f9bfa3d4584a8a24e941d55fb271 (diff) | |
download | mkinitcpio-a6b248d85d21b7a092d17b02e4be4e27f2227e98.tar.gz mkinitcpio-a6b248d85d21b7a092d17b02e4be4e27f2227e98.tar.xz |
functions: remove broken symlink error
Due to using PATH lookups for hooks, we can't possibly end up with a
broken symlink. The build will just error out on the hook not being
found.
Found via apron.
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Diffstat (limited to 'functions')
-rw-r--r-- | functions | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -622,10 +622,7 @@ run_build_hook() { # check for deprecation if [[ -L $script ]]; then - if ! realscript=$(readlink -e "$script"); then - error "$script is a broken symlink to $(readlink "$script")" - return 1 - fi + realscript=$(readlink -e "$script") warning "Hook '%s' is deprecated. Replace it with '%s' in your config" \ "${script##*/}" "${realscript##*/}" script=$realscript |