Refuse to upload empty files

Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
2026-09-13 00:50:30 +00:00
parent 67dc431aa2
commit 0238da5820
+8
View File
@@ -442,7 +442,15 @@ main() {
(( ${#args[@]} )) || return 1
for t in "${args[@]}"; do
if [[ -s "$t" ]]; then
upload "$t"
else
if [[ -f "$t" ]]; then
err "$t is empty"
else
err "$t not found"
fi
fi
done
;;