Commit 407f3da0 authored by Vitaly Lipatov's avatar Vitaly Lipatov

eget: can't search CID for file url

parent b10a725e
...@@ -510,6 +510,7 @@ get_cid_by_url() ...@@ -510,6 +510,7 @@ get_cid_by_url()
{ {
local URL="$1" local URL="$1"
[ -r "$EGET_IPFS_DB" ] || return [ -r "$EGET_IPFS_DB" ] || return
is_fileurl "$URL" && return 1
grep -F "$URL Qm" "$EGET_IPFS_DB" | head -n1 | cut -f2 -d" " grep -F "$URL Qm" "$EGET_IPFS_DB" | head -n1 | cut -f2 -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