Browse Source

always remove temporary files

master 1.6.1
Jack L. Frost 6 years ago
parent
commit
af0b52e575
  1. 2
      sup

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

Loading…
Cancel
Save