From 5900c1d4058f269354127a78de746533a17734ab Mon Sep 17 00:00:00 2001 From: Tom Cosgrove Date: Wed, 27 Jul 2022 08:55:03 +0100 Subject: [PATCH] Fix stupid mistake (s/-d/-f/) and typo found by mpg review - thanks Signed-off-by: Tom Cosgrove --- scripts/generate_query_config.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/generate_query_config.pl b/scripts/generate_query_config.pl index 6e98965948..ddbebfa448 100755 --- a/scripts/generate_query_config.pl +++ b/scripts/generate_query_config.pl @@ -50,7 +50,7 @@ if( @ARGV ) { if (defined($psa_crypto_config_file) && length($psa_crypto_config_file)) { -f $psa_crypto_config_file or die "No such file: $psa_crypto_config_file"; } else { - $psa_crypto_config_file = (-d $default_psa_crypto_config_file) ? $default_psa_crypto_config_file : undef; + $psa_crypto_config_file = (-f $default_psa_crypto_config_file) ? $default_psa_crypto_config_file : undef; } } else { $mbedtls_config_file = $default_mbedtls_config_file; @@ -89,7 +89,7 @@ for my $config_file ($mbedtls_config_file, $psa_crypto_config_file) { if ($line =~ /^(\/\/)?\s*#\s*define\s+(MBEDTLS_\w+|PSA_WANT_\w+).*/) { my $name = $2; - # Skip over the macro if it is in the ecluded list + # Skip over the macro if it is in the excluded list next if $name =~ /$excluded_re/; $config_check .= <