Browse Source

local file upload fix

master 1.0
Jack L. Frost 8 years ago
parent
commit
845b13cd64
  1. 6
      sup

6
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

Loading…
Cancel
Save