Skip to content

Instantly share code, notes, and snippets.

@mikejakobsen
Created December 4, 2016 11:57
Show Gist options
  • Save mikejakobsen/e300ae5a67634608db4c2a57102cc73f to your computer and use it in GitHub Desktop.
Save mikejakobsen/e300ae5a67634608db4c2a57102cc73f to your computer and use it in GitHub Desktop.
#!/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