Skip to content

Instantly share code, notes, and snippets.

@pasela
Created December 12, 2013 15:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pasela/7930249 to your computer and use it in GitHub Desktop.
Save pasela/7930249 to your computer and use it in GitHub Desktop.
Download latest minecraft_server.jar
#!/bin/bash
DOWNLOAD_PAGE=https://minecraft.net/download
url=$(curl -Ss "$DOWNLOAD_PAGE" | grep -ohE 'http.[^"]+/minecraft_server\.[^"]+\.jar')
if [[ -n "$url" ]]; then
curl -O "$url"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment