Skip to content

Commit bf4b9fc

Browse files
committed
Fix test for broken symlinks (-e is false, -h is true)
Signed-off-by: Andreas K. Hüttel <[email protected]>
1 parent 9350135 commit bf4b9fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/binutils-config

+1-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ switch_profile() {
191191
# Some stages errorneously could not figure out CHOST and installed
192192
# symlinks into the path ${EROOT}/usr/libexec/gcc/${HOST}. These need
193193
# to go away.
194-
if [[ -e "${EROOT}/usr/libexec/gcc/${HOST}/${x}" ]] ; then
194+
if [[ -h "${EROOT}/usr/libexec/gcc/${HOST}/${x}" ]] ; then
195195
rm -f "${EROOT}/usr/libexec/gcc/${HOST}/${x}"
196196
bad_symlinks_removed="1"
197197
fi

0 commit comments

Comments
 (0)