mirror of
https://github.com/dockur/windows.git
synced 2025-10-29 12:15:50 +00:00
Update install.sh
This commit is contained in:
parent
38e485a782
commit
2ea826cc4b
1 changed files with 3 additions and 3 deletions
|
|
@ -241,16 +241,16 @@ getESD() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
local tag="FilePath"
|
local tag="FilePath"
|
||||||
ESD=$(xmllint --nonet --xpath "'//$tag'" "$dir/$eFile" | sed -E -e "s/<[\/]?$tag>//g")
|
ESD=$(xmllint --nonet --xpath "//$tag" "$dir/$eFile" | sed -E -e "s/<[\/]?$tag>//g")
|
||||||
|
|
||||||
if [ -z "$ESD" ]; then
|
if [ -z "$ESD" ]; then
|
||||||
error "Failed to find ESD URL in $eFile!" && return 1
|
error "Failed to find ESD URL in $eFile!" && return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
tag="Sha1"
|
tag="Sha1"
|
||||||
ESD_SUM=$(xmllint --nonet --xpath "'//$tag'" "$dir/$eFile" | sed -E -e "s/<[\/]?$tag>//g")
|
ESD_SUM=$(xmllint --nonet --xpath "//$tag" "$dir/$eFile" | sed -E -e "s/<[\/]?$tag>//g")
|
||||||
tag="Size"
|
tag="Size"
|
||||||
ESD_SIZE=$(xmllint --nonet --xpath "'//$tag'" "$dir/$eFile" | sed -E -e "s/<[\/]?$tag>//g")
|
ESD_SIZE=$(xmllint --nonet --xpath "//$tag" "$dir/$eFile" | sed -E -e "s/<[\/]?$tag>//g")
|
||||||
|
|
||||||
rm -rf "$dir"
|
rm -rf "$dir"
|
||||||
return 0
|
return 0
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue