From a6b248d85d21b7a092d17b02e4be4e27f2227e98 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sat, 5 Jan 2013 14:47:00 -0500 Subject: 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 --- functions | 5 +---- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.3-24-g4f1b