always remove temporary files
This commit is contained in:
parent
1809fde7c9
commit
af0b52e575
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…
Reference in New Issue
Block a user