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" || {