Created
July 28, 2016 14:13
-
-
Save dcarley/1b1f4eaaeff72b7b687e14d50bc7c132 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
#!/usr/bin/env bash | |
set -eu | |
user=$1 | |
size=128 | |
url=$(curl https://api.github.com/users/${user} | jq -r '.avatar_url') | |
wget -O "${user}.jpg" "${url}&s=${size}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment