Commit a5ef01a1 authored by Vitaly Lipatov's avatar Vitaly Lipatov

eget: don't return put error in gateway mode

parent 29f10ce8
......@@ -656,7 +656,8 @@ ipfs_cat()
ipfs_put()
{
fatal "IPFS add disabled if a gateway is used"
info "IPFS put skipped when a gateway is used"
return 1
}
elif [ -z "$ipfs_mode" ] ; then
:
......@@ -1130,6 +1131,10 @@ sget()
# download file and add to IPFS
url_sget "$REALURL" "$TARGET" || return
# don't do ipfs put when gateway is using
[ "$ipfs_mode" = "gateway" ] && return
CID="$(ipfs_put --progress "$TARGET")" || return
put_cid_and_url "$REALURL" "$CID" "$FN"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment