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