It looks nice and I wish you luck with it. A couple of tips (or nitpicks) regarding wget-gpg:<p>> filename=$(echo "$1" | sed 's/\// /g' | awk '{ print $4 }')<p>1. You could remove the sed, if you change the field separator:<p><pre><code> $(echo "$1" | awk 'BEGIN {FS="/"} {print $5}'
</code></pre>
(this might be better for file names with spaces in them; though, if I understand your use case, this will never happen, but you might need to deal with space-to-%20 in wsend-gpg and then %20-to-space in wget-gpg...)<p>2. Or you could just replace this with:<p><pre><code> filename=$(basename "$1")
</code></pre>
> filenamed=$(echo "$filename" | sed 's/.gpg//')<p>3. The problem that this cuts the <i>first</i> occurrence of .gpg in the file name, so nitpick.gpg.nitpick.gpg will become nitpick.nitpick.gpg instead of nitpick.gpg.nitpick<p>To remove this substring from the end of the string, you can probably replace the pattern with a greedy one or just use:<p><pre><code> filenamed=${filename%.gpg}
</code></pre>
EDIT: previous related discussions:<p><a href="https://news.ycombinator.com/item?id=6083884" rel="nofollow">https://news.ycombinator.com/item?id=6083884</a><p><a href="https://news.ycombinator.com/item?id=6158719" rel="nofollow">https://news.ycombinator.com/item?id=6158719</a><p><a href="https://news.ycombinator.com/item?id=6179424" rel="nofollow">https://news.ycombinator.com/item?id=6179424</a><p>I like your persistence and glad you finally made it to the front page. Good luck.
This looks very useful. I had not realized it until now, but a CL-to-URL upload/download service is something I always unconsciously desired. Encryption is a nice bonus.<p>(My personal preference would be to deploy the service on my own VPS, though.)
I really liked the idea of registering through the CLI, really smoothly done!<p>Since you will probably iterate new versions fast and update, may I suggest embedding an update checker into the program. Atleast until you get properly setup in the different distro repo's.
I submitted a pull request adding lots more security as well as BZIP2 compression for efficiency:<p><a href="https://github.com/abemassry/wsend-gpg/pull/3" rel="nofollow">https://github.com/abemassry/wsend-gpg/pull/3</a>