diff options
author | Florian Pritz <bluewind@server-speed.net> | 2011-11-24 17:58:44 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@server-speed.net> | 2011-11-24 17:58:44 +0100 |
commit | fd4599262410cc0165a6c17fb624057a6b82d2b0 (patch) | |
tree | 196c4c55ee84484de8c8198a6ced6c19ab067477 | |
parent | 22cf17831c310acd308e1fa3656169ccc7b3986e (diff) |
remove fetched files even when upload failed
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>
-rw-r--r-- | fb.in | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -199,11 +199,10 @@ else continue fi for f in *; do - if do_upload "$f"; then - rm -f -- "$f" - else + if ! do_upload "$f"; then EXITCODE=1 fi + rm -f -- "$f" done else do_upload "$i" || EXITCODE=1 |