Created
August 22, 2016 22:27
-
-
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...)
This file contains 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 | |
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