fix: Shellcheck warning

This commit is contained in:
Kroese 2025-09-14 20:51:09 +02:00 committed by GitHub
parent acfdf30925
commit 5db763c34f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -406,6 +406,7 @@ getESD() {
local version="$2"
local lang="$3"
local desc="$4"
local result
local culture
local language
local editionName
@ -452,7 +453,7 @@ getESD() {
fi
local edQuery='//File[Architecture="'${PLATFORM,,}'"][Edition="'${editionName}'"]'
local result=$(xmllint --nonet --xpath "${edQuery}" "$dir/$xFile" 2>/dev/null)
result=$(xmllint --nonet --xpath "${edQuery}" "$dir/$xFile" 2>/dev/null)
if [ -z "$result" ]; then