Skip to content

Commit

Permalink
sshot: delegate to ./share
Browse files Browse the repository at this point in the history
  • Loading branch information
pbrisbin committed Jun 21, 2013
1 parent a2d146d commit d32dd5c
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions sshot
Expand Up @@ -3,11 +3,6 @@
# pbrisbin 2012
#
###
name="desktop_$(date +%y%m%d%H%M%S).png"
file="$HOME/Site/files/screenshots/$name"
link="http://files.pbrisbin.com/screenshots/$name"
file="/tmp/desktop_$(date +%y%m%d%H%M%S).png"

if scrot "$@" "$file"; then
echo -n "$link" | xclip
echo "$link"
fi
scrot "$@" "$file" && share --prefix screenshots "$file" && rm "$file"

0 comments on commit d32dd5c

Please sign in to comment.