From a5b46e5fdd48f417337f3f7f131ad62e0c56540a Mon Sep 17 00:00:00 2001 From: Jaco Kok Date: Mon, 23 Sep 2024 15:55:59 +0200 Subject: [PATCH] Included user agent for download (#459) --- bedrock-entry.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bedrock-entry.sh b/bedrock-entry.sh index 371dcb1..5ce9ba6 100755 --- a/bedrock-entry.sh +++ b/bedrock-entry.sh @@ -111,7 +111,7 @@ if [[ ! -f "bedrock_server-${VERSION}" ]]; then TMP_ZIP="$TMP_DIR/$(basename "${DOWNLOAD_URL}")" echo "Downloading Bedrock server version ${VERSION} ..." - if ! curl "${curlArgs[@]}" -o "${TMP_ZIP}" -fsSL "${DOWNLOAD_URL}"; then + if ! curl "${curlArgs[@]}" -o "${TMP_ZIP}" -A "itzg/minecraft-bedrock-server" -fsSL "${DOWNLOAD_URL}"; then echo "ERROR failed to download from ${DOWNLOAD_URL}" echo " Double check that the given VERSION is valid" exit 2