Added accept-language header during version lookup

#155
This commit is contained in:
Geoff Bourne committed 2021-07-14 22:19:09 -05:00
1 parent f1903fb686
commit 6bcd4bf74a
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -43,7 +43,7 @@ case ${VERSION^^} in
echo "Looking up latest version..."
for a in data-platform ; do
for i in {1..5}; do
DOWNLOAD_URL=$(restify --user-agent=itzg/minecraft-bedrock-server --attribute=${a}=serverBedrockLinux ${downloadPage} 2> restify.err | jq -r '.[0].href' || echo '')
DOWNLOAD_URL=$(restify --user-agent=itzg/minecraft-bedrock-server --headers "accept-language:*" --attribute=${a}=serverBedrockLinux ${downloadPage} 2> restify.err | jq -r '.[0].href' || echo '')
if [[ ${DOWNLOAD_URL} ]]; then
break 2
fi