Sign up for a GitHub account Sign in All Gists colby / imgur Created April 05, 2015 Code Revisions 1 /.sunken-menu-group /.sunken-menu-contents Embed HTTPS SSH You can clone with HTTPS or SSH . Download Gist /.only-with-full-nav A simple shell script to upload images to Imgur. View imgur imgur Raw File suppressed. Click to show. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 #!/usr/bin/env bash # variables img= " $1 " tmp=/tmp/imgur id= ' 3e7a4deb7ac67da ' link= ' https://api.imgur.com/3/upload ' # functions errcho () { >&2 echo " $* " exit 1 } check () { which " $1 " || errcho " imgur: missing dependency: $1 " } # deps grep= $( check grep ) curl= $( chec...