mirror of
https://github.com/dockur/windows.git
synced 2025-06-25 17:07:47 +00:00
Compare commits
No commits in common. "e457b9ff7d101dd2ec034b3fd0930e1b9aa0d55b" and "d2f304e154b0a59fe8e4abe97f46e7923a26c4bd" have entirely different histories.
e457b9ff7d
...
d2f304e154
@ -501,7 +501,7 @@ fromFile() {
|
||||
local desc="$1"
|
||||
local file="${1,,}"
|
||||
local arch="${PLATFORM,,}"
|
||||
|
||||
|
||||
file="${file//-/_}"
|
||||
file="${file// /_}"
|
||||
|
||||
|
@ -620,11 +620,10 @@ getMG() {
|
||||
}
|
||||
|
||||
local list=""
|
||||
list=$(echo "$body" | xmllint --html --nonet --xpath "//a[contains(text(), '.iso')]" - 2>/dev/null)
|
||||
list=$(echo "$body" | grep -Eo "(http|https)://[a-zA-Z0-9./?=_%:-]*" | grep -i '\.iso$')
|
||||
|
||||
local result=""
|
||||
result=$(echo "$list" | grep -i "${platform}" | grep "${pattern}" | grep -i -m 1 "${locale,,}_")
|
||||
result=$(echo "$result" | sed -r 's/.*href="([^"]+).*/\1/g')
|
||||
|
||||
if [ -z "$result" ]; then
|
||||
if [[ "${lang,,}" != "en" ]] && [[ "${lang,,}" != "en-"* ]]; then
|
||||
|
Loading…
Reference in New Issue
Block a user