Created
August 18, 2020 03:22
-
-
Save codehz/a807f4426bea3fc8170577a9fff449ae to your computer and use it in GitHub Desktop.
bds scripts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -euxo pipefail | |
dwpage='https://www.minecraft.net/en-us/download/server/bedrock/' | |
dwregx='https://minecraft.azureedge.net/bin-win/bedrock-server-.*?.zip' | |
url=$(curl "$dwpage" | grep -oP "$dwregx") | |
curl -o bds.zip -L "$url" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment