This commit is contained in:
Jack L. Frost 2015-02-10 16:50:10 +03:00
parent d0c5fdfcae
commit 30ff0776d6

7
sup
View File

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