Skip to content

Commit

Permalink
Merge pull request #8 from nikolay/dev
Browse files Browse the repository at this point in the history
v0.1.9-beta
  • Loading branch information
nikolay committed Sep 7, 2014
2 parents 307fcea + 7b6bee1 commit d525738
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## About

[wshare](https://github.com/nikolay/wshare) wraps [Zeropaste](http://0paste.com) by [@edogawaconan](https://github.com/edogawaconan) with [ShoutKey](http://shoutkey.com/) by [@jazzychad](https://github.com/jazzychad) to allow uploading text files from the console and producing short and easy to remember URL that don't require clipboard access or great short-term memory. This also works around Zeropaste's limitation of not having an autodestruct option by recording the deletion keys locally and providing a command to delete the expired ones.
[wshare](https://github.com/nikolay/wshare) wraps [Zeropaste](http://0paste.com) by [@edogawaconan](https://github.com/edogawaconan) with [ShoutKey](http://shoutkey.com/) by [@jazzychad](https://github.com/jazzychad) to allow uploading text files from the console and producing short and easy to remember URL that don't require clipboard access or great short-term memory. This also works around Zeropaste's limitation of not having a self-destruct option by recording the deletion keys locally and providing a command to delete the expired ones.

## Installation

Expand Down
4 changes: 3 additions & 1 deletion wshare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,10 @@ delete () {
response="$(curl -sL "http://0paste.com/$upload_id" -F "_method=delete" -F "paste[key]=$upload_key")"

rm "$file"
rmdir "$(dirname "$file")" || true

rmdir "$(dirname "$file")" 2>/dev/null || true
done
rmdir "$WSHARE_HOME" 2>/dev/null || true
}

cleanup () {
Expand Down

0 comments on commit d525738

Please sign in to comment.