Skip to content

Instantly share code, notes, and snippets.

@oxguy3
Created August 22, 2016 22:27
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 oxguy3/08a4ba6cdf5eaf89bee68107e10a8749 to your computer and use it in GitHub Desktop.
Save oxguy3/08a4ba6cdf5eaf89bee68107e10a8749 to your computer and use it in GitHub Desktop.
old bash script from high school -- used this to download Minecraft to school computers (I did not make the best use of my free bells...)
#!/bin/bash
cd ~/Desktop
echo ""
echo "DOWNLOADING MC.DMG..."
curl http://wowsuchaddress.zapto.org/htdocs/Minecraft.dmg -o mc.dmg
echo ""
echo "MOUNTING MC.DMG..."
hdiutil attach -nobrowse mc.dmg
echo ""
echo "COPYING MC TO DESKTOP..."
rsync -av "/Volumes/Minecraft/Minecraft.app" ~/Desktop
echo ""
echo "UNMOUNTING MC.DMG..."
hdiutil detach "/Volumes/Minecraft"
echo ""
echo "DELETING MC.DMG..."
rm mc.dmg
echo ""
echo "DOWNLOADING ASSETS..."
curl http://wowsuchaddress.zapto.org/htdocs/asdf2.zip -o mcassets.zip
echo ""
echo "UNZIPPING ASSETS..."
unzip mcassets.zip -d ~/Library/Application\ Support/minecraft
echo ""
echo "DELETING ZIPPED ASSETS..."
rm mcassets.zip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment