Merge pull request #2434 from drwetter/fix_2429_3.0

Fix weird bash globbing (3.0)
This commit is contained in:
Dirk Wetter 2023-10-30 17:53:19 +01:00 committed by GitHub
commit 40c6be790b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7094,7 +7094,7 @@ determine_trust() {
ca_bundles="$CA_BUNDLES_PATH/*.pem"
fi
for bundle_fname in $ca_bundles; do
certificate_file[i]=$(basename ${bundle_fname//.pem})
certificate_file[i]=$(basename ${bundle_fname//.pem} 2>/dev/null)
if [[ ! -r $bundle_fname ]]; then
prln_warning "\"$bundle_fname\" cannot be found / not readable"
return 1