From a6c4e4fd86c69b22f2889fa74fb44d850de22240 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 29 Oct 2021 13:15:50 +0200 Subject: binutil: Fix error message --- core/includes/binutil.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/includes') diff --git a/core/includes/binutil.inc b/core/includes/binutil.inc index 0ec98f37..7ca92f3a 100644 --- a/core/includes/binutil.inc +++ b/core/includes/binutil.inc @@ -141,8 +141,8 @@ get_link_chain() { # sanity checks [[ "$1" == /* ]] || perror "get_link_chain() requires absolute paths, given: $1" - if [ ! -e $1 -a ! -L $1 ]; then - perror "'$1' is a link but its target '$LINK_TARGET' is not in '${LOCALSEARCHDIR}'" + if [ ! -e "$1" -a ! -L "$1" ]; then + perror "get_link_chain: '$1' does not exist" fi local PREFIX= if [ $# == 2 ] ; then -- cgit v1.2.3-55-g7522