Skip to content

Commit 3289af3

Browse files
authored
Merge pull request #156 from crawlem/master
Fix latest version check URL
2 parents 2d7c9dd + 18522b0 commit 3289af3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

start.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ if [ "$?" != 0 ]; then
9595
else
9696
# Download server index.html to check latest version
9797

98-
curl -H "Accept-Encoding: identity" -H "Accept-Language: en" -L -A "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.$RandNum.212 Safari/537.36" -o downloads/version.html https://www.minecraft.net/en-us/download/server/bedrock
98+
curl -H "Accept-Encoding: identity" -H "Accept-Language: en" -L -A "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.$RandNum.212 Safari/537.36" -o downloads/version.html https://net-secondary.web.minecraft-services.net/api/v1.0/download/links
9999
LatestURL=$(grep -o 'https://www.minecraft.net/bedrockdedicatedserver/bin-linux/[^"]*' downloads/version.html)
100100

101101
LatestFile=$(echo "$LatestURL" | sed 's#.*/##')

0 commit comments

Comments
 (0)