Included user agent for download (#459)

This commit is contained in:
Jaco Kok authored and GitHub committed 2024-09-23 08:55:59 -05:00
1 parent 60173a891b
commit a5b46e5fdd
1 file changed
+1 -1
+1 -1
View File
@@ -111,7 +111,7 @@ if [[ ! -f "bedrock_server-${VERSION}" ]]; then
TMP_ZIP="$TMP_DIR/$(basename "${DOWNLOAD_URL}")" TMP_ZIP="$TMP_DIR/$(basename "${DOWNLOAD_URL}")"
echo "Downloading Bedrock server version ${VERSION} ..." 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 "ERROR failed to download from ${DOWNLOAD_URL}"
echo " Double check that the given VERSION is valid" echo " Double check that the given VERSION is valid"
exit 2 exit 2