protect the compiler_name in the basename call as well

This commit is contained in:
Martin Kroeker 2023-04-07 17:54:14 +02:00 committed by GitHub
parent ab678adaae
commit 8a1459423e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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