Compare commits

..

No commits in common. "e457b9ff7d101dd2ec034b3fd0930e1b9aa0d55b" and "d2f304e154b0a59fe8e4abe97f46e7923a26c4bd" have entirely different histories.

2 changed files with 2 additions and 3 deletions

View File

@ -501,7 +501,7 @@ fromFile() {
local desc="$1"
local file="${1,,}"
local arch="${PLATFORM,,}"
file="${file//-/_}"
file="${file// /_}"

View 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