diff --git a/sup b/sup index 21d2160..3eb6652 100755 --- a/sup +++ b/sup @@ -142,14 +142,16 @@ main() { else target="${args[0]}"; [[ "$target" ]] || { sup.usage; exit 1; } - sup.if_url "$target" && { + if sup.if_url "$target"; then file=`sup.mktemp "$cfg_tmp_dir"` curl -s "$target" > "$file" || { sup.err "Could not download file." return 1 } - } + else + file="$target" + fi fi sup.upload