mirror of
https://github.com/dockur/windows.git
synced 2025-10-27 11:25:49 +00:00
fix: Shellcheck warning
This commit is contained in:
parent
acfdf30925
commit
5db763c34f
1 changed files with 2 additions and 1 deletions
|
|
@ -406,6 +406,7 @@ getESD() {
|
||||||
local version="$2"
|
local version="$2"
|
||||||
local lang="$3"
|
local lang="$3"
|
||||||
local desc="$4"
|
local desc="$4"
|
||||||
|
local result
|
||||||
local culture
|
local culture
|
||||||
local language
|
local language
|
||||||
local editionName
|
local editionName
|
||||||
|
|
@ -452,7 +453,7 @@ getESD() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
local edQuery='//File[Architecture="'${PLATFORM,,}'"][Edition="'${editionName}'"]'
|
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
|
if [ -z "$result" ]; then
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue