actually return the proper url
This commit is contained in:
parent
d3e99ec189
commit
78b17aa234
5
sup
5
sup
|
@ -83,8 +83,9 @@ sup.upload() {
|
||||||
|
|
||||||
sup.get_hash "$file"
|
sup.get_hash "$file"
|
||||||
|
|
||||||
if curl -fsL "${cfg_service_url}/api?mode=file&file=${file_hash}" >/dev/null; then
|
file_url=$( curl -fsL "${cfg_service_url}/api?mode=file&file=${file_hash}&direct=1" )
|
||||||
printf '%s\n' "${cfg_service_url}/hell/${file_hash}"
|
if ! (( $? )); then
|
||||||
|
printf '%s\n' "$file_url"
|
||||||
else
|
else
|
||||||
if curl -fsL \
|
if curl -fsL \
|
||||||
-F file="@$file" \
|
-F file="@$file" \
|
||||||
|
|
Loading…
Reference in New Issue
Block a user