Merge pull request #4071 from martin-frbg/fix4010

Drop extraneous escaping in the basename call
This commit is contained in:
Martin Kroeker
2023-06-13 20:59:27 +02:00
committed by GitHub

View File

@@ -35,12 +35,12 @@ if [ "`dirname \"$compiler_name\"`" != '.' ]; then
cross_suffix="$cross_suffix`dirname \"$compiler_name\"`/"
fi
bn=`basename \"$compiler_name\"`
cn= `echo $compiler_name | sed -e 's/ -.*//'`
bn=`basename "$cn"`
case "$bn" in
*-*) if [ "$bn" != '-' ]; then
cross_suffix="$cross_suffix${bn%-*}-"
cross_suffix=`echo $cross_suffix|sed -e 's/ -$//'`
fi
esac