Skip to content

Instantly share code, notes, and snippets.

@codehz
Created August 18, 2020 03:22
Show Gist options
  • Save codehz/a807f4426bea3fc8170577a9fff449ae to your computer and use it in GitHub Desktop.
Save codehz/a807f4426bea3fc8170577a9fff449ae to your computer and use it in GitHub Desktop.
bds scripts
#!/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