mirror of
https://github.com/dockur/windows.git
synced 2025-06-25 08:57:47 +00:00
Compare commits
2 Commits
d2f304e154
...
e457b9ff7d
Author | SHA1 | Date | |
---|---|---|---|
|
e457b9ff7d | ||
|
bf93dd0f9f |
@ -501,7 +501,7 @@ fromFile() {
|
|||||||
local desc="$1"
|
local desc="$1"
|
||||||
local file="${1,,}"
|
local file="${1,,}"
|
||||||
local arch="${PLATFORM,,}"
|
local arch="${PLATFORM,,}"
|
||||||
|
|
||||||
file="${file//-/_}"
|
file="${file//-/_}"
|
||||||
file="${file// /_}"
|
file="${file// /_}"
|
||||||
|
|
||||||
|
@ -620,10 +620,11 @@ getMG() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
local list=""
|
local list=""
|
||||||
list=$(echo "$body" | grep -Eo "(http|https)://[a-zA-Z0-9./?=_%:-]*" | grep -i '\.iso$')
|
list=$(echo "$body" | xmllint --html --nonet --xpath "//a[contains(text(), '.iso')]" - 2>/dev/null)
|
||||||
|
|
||||||
local result=""
|
local result=""
|
||||||
result=$(echo "$list" | grep -i "${platform}" | grep "${pattern}" | grep -i -m 1 "${locale,,}_")
|
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 [ -z "$result" ]; then
|
||||||
if [[ "${lang,,}" != "en" ]] && [[ "${lang,,}" != "en-"* ]]; then
|
if [[ "${lang,,}" != "en" ]] && [[ "${lang,,}" != "en-"* ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user