Created
August 14, 2014 02:36
-
-
Save shichao-an/d69391c06a264a1836ad to your computer and use it in GitHub Desktop.
Get icon
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 | |
pattern="http://dcbdluf1ahqio.cloudfront.net/%s/%s.png" | |
service="$1" | |
width=${2:-42} | |
size="${width}x${width}" | |
url=$(printf "$pattern" "$service" "$size") | |
wget $url -O "${service}_icon.png" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment