|
|
|
@ -153,7 +153,12 @@ main() {
|
|
|
|
|
if (( flag_scrot )); then
|
|
|
|
|
file="$(sup.scrot)" || { return 1; }
|
|
|
|
|
else
|
|
|
|
|
target="$1"; [[ "$target" ]] || { sup.usage; exit 1; }
|
|
|
|
|
(( $# )) || {
|
|
|
|
|
sup.usage
|
|
|
|
|
return 1
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
target="$1"
|
|
|
|
|
|
|
|
|
|
if sup.if_url "$target"; then
|
|
|
|
|
file=$(sup.mktemp "$cfg_tmp_dir")
|
|
|
|
|