Commit 46d6c6ac authored by Vitaly Lipatov's avatar Vitaly Lipatov

eget: add EGET_IPFS_FORCE_LOAD enables downloading ever if the target is exists in IPFS DB

parent 1b1fdc99
......@@ -1235,7 +1235,7 @@ scat()
###################
local CID="$(get_cid_by_url "$URL")"
if [ -n "$CID" ] ; then
if [ -n "$CID" ] && [ -z "$EGET_IPFS_FORCE_LOAD" ] ; then
info "$URL -> $CID"
ipfs_cat "$CID"
return
......@@ -1282,7 +1282,7 @@ sget()
#fi
local CID="$(get_cid_by_url "$REALURL")"
if [ -n "$CID" ] ; then
if [ -n "$CID" ] && [ -z "$EGET_IPFS_FORCE_LOAD" ] ; then
if [ -n "$GETIPFSCID" ] ; then
echo "$CID"
......
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