Skip to content

Commit

Permalink
update command: changed parsing xpath to new website
Browse files Browse the repository at this point in the history
  • Loading branch information
moormaster committed Oct 16, 2016
1 parent 3492e28 commit 2995f83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions minecraft.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ MINECRAFT_MAP_FUNC=
MINECRAFT_MAP_C10TDIR=
MINECRAFT_MAP_MINECRAFTOVERVIEWERDIR=

MINECRAFT_UPDATE_URL="https://minecraft.net/download"
MINECRAFT_UPDATE_XPATH="string(descendant::a[@data-dist='server' and @data-platform='linux']/@href)"
MINECRAFT_UPDATE_URL="https://minecraft.net/en/download/server"
MINECRAFT_UPDATE_XPATH="string(descendant::p/text()[contains(., 'Download')]/../a/@href)"
MINECRAFT_UPDATE_WGETOPTS="--no-check-certificate"
MINECRAFT_SCRIPT_FILE="$( readlink -f "$0" )"
MINECRAFT_SCRIPT_DIR="$( dirname "$MINECRAFT_SCRIPT_FILE" )"
Expand Down

0 comments on commit 2995f83

Please sign in to comment.