Created
September 4, 2020 20:38
-
-
Save chris-roerig/0343e1faf3400c87cd9973b699e3d4a9 to your computer and use it in GitHub Desktop.
Script to download and install deb packge of Minecraft
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 | |
# 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