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
commit db3366f503
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

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