Skip to content

Instantly share code, notes, and snippets.

@chris-roerig
Created September 4, 2020 20:38
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chris-roerig/0343e1faf3400c87cd9973b699e3d4a9 to your computer and use it in GitHub Desktop.
Save chris-roerig/0343e1faf3400c87cd9973b699e3d4a9 to your computer and use it in GitHub Desktop.
Script to download and install deb packge of Minecraft
#!/bin/bash
# This script will pull the latest Minecraft.deb file from Mojang and install it.
# I put this on a cron to run every week. I created this because I was tired of having
# to update the launcher every time I opened it.
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
fi
DEB=/tmp/Minecraft.deb
curl https://launcher.mojang.com/download/Minecraft.deb -o $DEB
dpkg -i $DEB
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment