From bf4b9fcbb4ce432731ac90fbbb3bcf73beb51820 Mon Sep 17 00:00:00 2001 From: "Andreas K. Hüttel" Date: Sun, 28 Jul 2024 16:24:28 +0200 Subject: Fix test for broken symlinks (-e is false, -h is true) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Andreas K. Hüttel --- src/binutils-config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/binutils-config b/src/binutils-config index 519f1f0..43d38e5 100755 --- a/src/binutils-config +++ b/src/binutils-config @@ -191,7 +191,7 @@ switch_profile() { # Some stages errorneously could not figure out CHOST and installed # symlinks into the path ${EROOT}/usr/libexec/gcc/${HOST}. These need # to go away. - if [[ -e "${EROOT}/usr/libexec/gcc/${HOST}/${x}" ]] ; then + if [[ -h "${EROOT}/usr/libexec/gcc/${HOST}/${x}" ]] ; then rm -f "${EROOT}/usr/libexec/gcc/${HOST}/${x}" bad_symlinks_removed="1" fi -- cgit v1.2.3-65-gdbad