From af0b52e575bc31bb3eaeebdb4a07aff5163ed8f0 Mon Sep 17 00:00:00 2001 From: fbt Date: Tue, 13 Oct 2015 13:57:56 +0300 Subject: [PATCH] always remove temporary files --- sup | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sup b/sup index 87fe6f1..c6bca90 100755 --- a/sup +++ b/sup @@ -65,6 +65,7 @@ sup.get_hash() { sup.upload() { if (( flag_scrot )); then + flag_rm=1 file=$(sup.scrot) || { return 1; } else (( $# )) || { @@ -75,6 +76,7 @@ sup.upload() { target="$1" if is_url "$target"; then + flag_rm=1 file=$(sup.mktemp "$cfg_tmp_dir") curl -skL "$target" > "$file" || {