Due to Cloudflare challenges, remove Interact webscrape method for determining latest MC release
This commit is contained in:
10
installJRMC
10
installJRMC
@@ -453,7 +453,7 @@ init() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# @description Determines the latest JRiver MC version using several methods
|
# @description Determines the latest MC version using several methods
|
||||||
set_mc_version() {
|
set_mc_version() {
|
||||||
debug "${FUNCNAME[0]}()"
|
debug "${FUNCNAME[0]}()"
|
||||||
declare -g MC_VERSION MC_VERSION_SOURCE
|
declare -g MC_VERSION MC_VERSION_SOURCE
|
||||||
@@ -484,10 +484,10 @@ set_mc_version() {
|
|||||||
buildah rm "$CNT" &>/dev/null &&
|
buildah rm "$CNT" &>/dev/null &&
|
||||||
[[ $MC_VERSION =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
|
[[ $MC_VERSION =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
|
||||||
MC_VERSION_SOURCE="containerized package manager"
|
MC_VERSION_SOURCE="containerized package manager"
|
||||||
# Fallback to webscrape
|
# # Fallback to webscrape
|
||||||
elif MC_VERSION=$(download "https://yabb.jriver.com/interact/index.php/board,$BOARD_ID.html" "-" | grep -Eo '[0-9]+\.[0-9]+\.[0-9]+' | head -n 1) &&
|
# elif MC_VERSION=$(download "https://yabb.jriver.com/interact/index.php/board,$BOARD_ID.html" "-" | grep -Eo '[0-9]+\.[0-9]+\.[0-9]+' | head -n 1) &&
|
||||||
[[ $MC_VERSION =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
|
# [[ $MC_VERSION =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
|
||||||
MC_VERSION_SOURCE="webscrape"
|
# MC_VERSION_SOURCE="webscrape"
|
||||||
# Fallback to hardcoded value
|
# Fallback to hardcoded value
|
||||||
else
|
else
|
||||||
MC_VERSION="$MC_VERSION_HARDCODE"
|
MC_VERSION="$MC_VERSION_HARDCODE"
|
||||||
|
|||||||
Reference in New Issue
Block a user