aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas K. Hüttel <dilfridge@gentoo.org>2024-07-28 16:24:28 +0200
committerAndreas K. Hüttel <dilfridge@gentoo.org>2024-07-28 16:35:40 +0200
commitbf4b9fcbb4ce432731ac90fbbb3bcf73beb51820 (patch)
tree499fb12103433add952c191231d4561e0f7e6d7d
parentRemove bad binutils symlinks in /usr/libexec/gcc/${HOST}/ (diff)
downloadbinutils-config-master.tar.gz
binutils-config-master.tar.bz2
binutils-config-master.zip
Fix test for broken symlinks (-e is false, -h is true)HEADv5.5.2master
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
-rwxr-xr-xsrc/binutils-config2
1 files changed, 1 insertions, 1 deletions
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