summaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2013-01-05 20:47:00 +0100
committerDave Reisner <dreisner@archlinux.org>2013-01-12 22:59:33 +0100
commita6b248d85d21b7a092d17b02e4be4e27f2227e98 (patch)
tree6e0fd1a2e24385b4d91df923c995c6cf67325c58 /functions
parent13f455b2a194f9bfa3d4584a8a24e941d55fb271 (diff)
downloadmkinitcpio-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--functions5
1 files changed, 1 insertions, 4 deletions
diff --git a/functions b/functions
index 90ee02e..573fbb8 100644
--- a/functions
+++ b/functions
@@ -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