Skip to content

Instantly share code, notes, and snippets.

@gsanders5
Last active April 9, 2017 22:58
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gsanders5/da14bd074971233a9a265a643fa25b1e to your computer and use it in GitHub Desktop.
Save gsanders5/da14bd074971233a9a265a643fa25b1e to your computer and use it in GitHub Desktop.
#!/bin/bash
# To run without saving this script...
# bash <(curl -s https://gist.githubusercontent.com/Raveanox/da14bd074971233a9a265a643fa25b1e/raw)
dir=$(mktemp --directory)
cd $dir
wget -qO- https://github.com/google/fonts/archive/master.tar.gz | tar -xvzf-
mkdir google-fonts
cd fonts-master
find . -name \*.ttf -exec cp {} ../google-fonts \;
cd $dir
rm -r $dir/fonts-master
tar -czvf google-fonts.tar.gz google-fonts
curl --upload-file ./google-fonts.tar.gz https://transfer.sh/google-fonts-$(date +%F).tgz
cd /tmp/
rm -r $dir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment