mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-01-27 06:35:22 +00:00
Disable wildcards when checking for unsupported components
Otherwise $COMMAND_LINE_COMPONENTS would try to expand wildcard patterns based on files in the current directory. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
c111e24292
commit
1d475b6398
@ -444,7 +444,9 @@ pre_parse_command_line () {
|
|||||||
|
|
||||||
if [ $all_except -eq 0 ]; then
|
if [ $all_except -eq 0 ]; then
|
||||||
unsupported=0
|
unsupported=0
|
||||||
|
set -f
|
||||||
for component in $COMMAND_LINE_COMPONENTS; do
|
for component in $COMMAND_LINE_COMPONENTS; do
|
||||||
|
set +f
|
||||||
case $component in
|
case $component in
|
||||||
*[*?\[]*) continue;;
|
*[*?\[]*) continue;;
|
||||||
esac
|
esac
|
||||||
@ -455,6 +457,7 @@ pre_parse_command_line () {
|
|||||||
unsupported=$((unsupported + 1));;
|
unsupported=$((unsupported + 1));;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
set +f
|
||||||
if [ $unsupported -ne 0 ]; then
|
if [ $unsupported -ne 0 ]; then
|
||||||
exit 2
|
exit 2
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user