Commit c91589cf authored by Vitaly Lipatov's avatar Vitaly Lipatov

eget: do basename for filename_by_cid

parent ee3ea80b
......@@ -546,7 +546,7 @@ put_cid_and_url()
get_filename_by_cid()
{
local CID="$1"
[ -z "$EGET_IPFS_DB" ] && echo "$CID" && return
[ -z "$EGET_IPFS_DB" ] && basename "$CID" && return
grep -F " $CID " "$EGET_IPFS_DB" | head -n1 | cut -f3 -d" "
}
......
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