Created
December 4, 2016 11:57
-
-
Save mikejakobsen/e300ae5a67634608db4c2a57102cc73f to your computer and use it in GitHub Desktop.
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 | |
#Do we have git? | |
if test ! $(which git); then | |
echo "Must have git installed for this to work!" | |
exit 0 | |
fi | |
#Download the repo and cd to fonts folder | |
git clone https://github.com/google/fonts fonts | |
cd fonts/fonts | |
#Magical find command to cp all fonts to /Library/Fonts | |
find . -name "*.ttf" -exec cp {} /Library/Fonts/ \; | |
#All done, let's clean up a bit | |
cd ../.. | |
rm -rf fonts |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment