Age | Commit message (Collapse) | Author | Files | Lines |
|
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
I don't like the look of everything being upper case and it certainly
complicates writing the variable names.
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Seems like wc -c $file doesn't return "0 $file" on Darwin. wc -c <
$file is simpler because it doesn't need cut and works fine, so we just
use that.
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
echo is inconsistent across different platforms and this also removes an unneeded fork.
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
The echo builtin on darwin doesn't support any options and will output
them.
References:
https://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man1/echo.1.html
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
No point in uploading a really empty file and it might even cause
confusion to see an empty page when clicking the link.
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
%b returns blocks, but we want bytes (%z)
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
|
|
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Signed-off-by: Florian Pritz <bluewind@server-speed.net>
|
|
busybox sh doesn't have it and will now display an error.
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
This makes the main script able to run alone again.
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Reported-by: Moritz Wilhelmy <moritz+git@wzff.de>
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
These will come in handy once -t supports bundling downloaded files (URL
as an argument instead of a file).
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
If the upload failed and the user supplied multiple URLs, we will find
those on the next run and try to upload them again.
Signed-off-by: Florian Pritz <bluewind@server-speed.net>
|
|
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
"-t" expands to $TMPDIR (or /tmp if unset), which means, the user can
override in which directory temporary files are created.
This works with GNU mktemp (although GNU deprecated -t) as well as BSD
mktemp (does not replace X by random characters but rather appends them;
this does not matter much) and busybox mktemp (which requires the number
of X's to be exactly 6)
|
|
|
|
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
This reverts commit df54bdd9eeb043265a1446f8242037c983047cb0.
The way this was implemented is pretty limited so it's better if the
user runs gpg manually.
Conflicts:
fb.in
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
If $URL is not a URL the upload failed for some reason, so it should not
be added to the history.
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
fb-upload is now called fb-helper which supports downloading and uploading
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|
|
Signed-off-by: Florian Pritz <bluewind@server-speed.net>
|
|
Signed-off-by: Florian Pritz <bluewind@server-speed.net>
|
|
Signed-off-by: Florian Pritz <bluewind@server-speed.net>
|
|
Signed-off-by: Florian Pritz <bluewind@server-speed.net>
|
|
Signed-off-by: Florian Pritz <bluewind@server-speed.net>
|
|
If these switches are present and there are no arguments the program
should exit and not try to upload stdin.
Signed-off-by: Florian Pritz <bluewind@server-speed.net>
|
|
Signed-off-by: Florian Pritz <bluewind@server-speed.net>
|
|
Signed-off-by: Florian Pritz <bluewind@server-speed.net>
|
|
Signed-off-by: Florian Pritz <bluewind@server-speed.net>
|
|
Signed-off-by: Florian Pritz <bluewind@server-speed.net>
|
|
Signed-off-by: Florian Pritz <bluewind@server-speed.net>
|
|
Signed-off-by: Florian Pritz <bluewind@server-speed.net>
|
|
Signed-off-by: Florian Pritz <bluewind@server-speed.net>
|
|
Signed-off-by: Florian Pritz <bluewind@server-speed.net>
|