screenshot-paste - annna - Annna the nice friendly bot. | |
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
--- | |
screenshot-paste (296B) | |
--- | |
1 #!/bin/sh | |
2 | |
3 export PATH="/home/annna/bin:$PATH" | |
4 | |
5 if [ $# -lt 1 ]; | |
6 then | |
7 printf "usage: %s uri\n" "$(basename "$0")" >&2 | |
8 exit 1 | |
9 fi | |
10 | |
11 pastepath="$(screenshot-uri "$1")" | |
12 [ -z "${pastepath}" ] && exit 1 | |
13 | |
14 pastefile="$(basename "${pastepath}")" | |
15 | |
16 printf "gophers://bitreich.org/I/p/%s\n" "${pastefile}" | |
17 |