Skip to content

Instantly share code, notes, and snippets.

@nmcspadden
Created December 5, 2013 18:20
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 nmcspadden/7810521 to your computer and use it in GitHub Desktop.
Save nmcspadden/7810521 to your computer and use it in GitHub Desktop.
#!/bin/sh
#VerifyMinecraftEdu
mcpath="/Library/Application Support/minecraftedu"
homepath="$HOME/Library/Application Support/"
endpath="$HOME/Library/Application Support/minecraftedu/"
if [[ -e "$mcpath" ]]
then
if [[ ! -e "$endpath" ]]
then
cp -R "$mcpath" "$homepath"
chown -R $USER:staff "$endpath"
fi
else
echo "Didn't find MinecraftEDU in /Library/Application Support/."
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment