Commit d9f1d0c7 authored by Vitaly Lipatov's avatar Vitaly Lipatov

eget: ipfs_api_acess(): don't print errors in non verbose mode

parent d8e2c301
......@@ -488,7 +488,11 @@ get_ipfs_brave()
ipfs_api_access()
{
[ -n "$IPFS_CMD" ] || fatal "IPFS is disabled"
verdocmd $IPFS_CMD --api $IPFS_API $ipfs_diag_timeout diag sys >/dev/null
if [ -n "$verbose" ] ; then
verdocmd $IPFS_CMD --api $IPFS_API $ipfs_diag_timeout diag sys >/dev/null
else
verdocmd $IPFS_CMD --api $IPFS_API $ipfs_diag_timeout diag sys >/dev/null 2>/dev/null
fi
}
ipfs_check()
......
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