mirror of
https://github.com/dockur/windows.git
synced 2025-10-29 20:25:49 +00:00
Update mido.sh
This commit is contained in:
parent
e885553806
commit
6f2ebcc38f
1 changed files with 3 additions and 2 deletions
|
|
@ -476,17 +476,18 @@ getESD() {
|
||||||
error "Failed to find $xFile in $wFile!" && return 1
|
error "Failed to find $xFile in $wFile!" && return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
local esdLang="en-us"
|
local esdLang="${language,,}"
|
||||||
local edQuery='//File[Architecture="'${PLATFORM}'"][Edition="'${editionName}'"]'
|
local edQuery='//File[Architecture="'${PLATFORM}'"][Edition="'${editionName}'"]'
|
||||||
|
|
||||||
echo -e '<Catalog>' > "$dir/$fFile"
|
echo -e '<Catalog>' > "$dir/$fFile"
|
||||||
xmllint --nonet --xpath "${edQuery}" "$dir/$xFile" >> "$dir/$fFile" 2>/dev/null
|
xmllint --nonet --xpath "${edQuery}" "$dir/$xFile" >> "$dir/$fFile" 2>/dev/null
|
||||||
echo -e '</Catalog>'>> "$dir/$fFile"
|
echo -e '</Catalog>'>> "$dir/$fFile"
|
||||||
|
|
||||||
xmllint --nonet --xpath '//File[LanguageCode="'${esdLang}'"]' "$dir/$fFile" >"$dir/$eFile"
|
xmllint --nonet --xpath '//File[LanguageCode="'${esdLang}'"]' "$dir/$fFile" >"$dir/$eFile"
|
||||||
|
|
||||||
size=$(stat -c%s "$dir/$eFile")
|
size=$(stat -c%s "$dir/$eFile")
|
||||||
if ((size<20)); then
|
if ((size<20)); then
|
||||||
error "Failed to find Windows product in $eFile!" && return 1
|
error "Language \"$language\" is not supported by this download method!" && return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
local tag="FilePath"
|
local tag="FilePath"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue