Skip to content

Commit a5b46e5

Browse files
authored
Included user agent for download (#459)
1 parent 60173a8 commit a5b46e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bedrock-entry.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ if [[ ! -f "bedrock_server-${VERSION}" ]]; then
111111
TMP_ZIP="$TMP_DIR/$(basename "${DOWNLOAD_URL}")"
112112

113113
echo "Downloading Bedrock server version ${VERSION} ..."
114-
if ! curl "${curlArgs[@]}" -o "${TMP_ZIP}" -fsSL "${DOWNLOAD_URL}"; then
114+
if ! curl "${curlArgs[@]}" -o "${TMP_ZIP}" -A "itzg/minecraft-bedrock-server" -fsSL "${DOWNLOAD_URL}"; then
115115
echo "ERROR failed to download from ${DOWNLOAD_URL}"
116116
echo " Double check that the given VERSION is valid"
117117
exit 2

0 commit comments

Comments
 (0)