Commit 7c6318ac authored by Vitaly Lipatov's avatar Vitaly Lipatov

eget: fix cat files in ipfs mode

parent 63e8a85d
......@@ -987,7 +987,6 @@ sget()
{
local URL="$1"
local TARGET="$2"
[ "$TARGET" = "-" ] && TARGET="/dev/stdout"
if [ -n "$GETFILENAME" ] ; then
get_filename "$URL"
......@@ -1001,6 +1000,13 @@ sget()
exit
fi
# skip ipfs for cat
if [ "$TARGET" = "/dev/stdout" ] || [ "$TARGET" = "-" ] ; then
url_scat "$URL"
return
fi
#if is_strange_url "$REALURL" ; then
# info "Just download strange URL $REALURL, skipping IPFS"
# url_sget "$REALURL" "$TARGET"
......
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