Commit 1bd2f6ae authored by Vitaly Lipatov's avatar Vitaly Lipatov

eget: check Brave IPFS after local ipfs in IPFS auto mode

parent 84c23a57
...@@ -491,29 +491,29 @@ ipfs_check() ...@@ -491,29 +491,29 @@ ipfs_check()
select_ipfs_mode() select_ipfs_mode()
{ {
IPFS_CMD="$(get_ipfs_brave)" IPFS_CMD="$(print_command_path ipfs)"
# if no EGET_IPFS_API, check brave if [ -n "$IPFS_CMD" ] ; then
if [ -z "$EGET_IPFS_API" ] && [ -n "$IPFS_CMD" ] ; then IPFS_API="$ipfs_api_local"
IPFS_API="$ipfs_api_brave"
if ipfs_api_access ; then if ipfs_api_access ; then
ipfs_mode="brave" && return ipfs_mode="local" && return
#if ipfs_check "$ipfs_checkQm" ; then #if ipfs_check "$ipfs_checkQm" ; then
# ipfs_mode="brave" && return # ipfs_mode="local" && return
#else #else
# info "Skipped Brave: it is accessible via $IPFS_CMD --api $IPFS_API, but can't return shared $ipfs_checkQm" # info "Skipped local: it is accessible via $IPFS_CMD --api $IPFS_API, but can't return shared $ipfs_checkQm"
#fi #fi
fi fi
fi fi
IPFS_CMD="$(print_command_path ipfs)" IPFS_CMD="$(get_ipfs_brave)"
if [ -n "$IPFS_CMD" ] ; then # if no EGET_IPFS_API, check brave
IPFS_API="$ipfs_api_local" if [ -z "$EGET_IPFS_API" ] && [ -n "$IPFS_CMD" ] ; then
IPFS_API="$ipfs_api_brave"
if ipfs_api_access ; then if ipfs_api_access ; then
ipfs_mode="local" && return ipfs_mode="brave" && return
#if ipfs_check "$ipfs_checkQm" ; then #if ipfs_check "$ipfs_checkQm" ; then
# ipfs_mode="local" && return # ipfs_mode="brave" && return
#else #else
# info "Skipped local: it is accessible via $IPFS_CMD --api $IPFS_API, but can't return shared $ipfs_checkQm" # info "Skipped Brave: it is accessible via $IPFS_CMD --api $IPFS_API, but can't return shared $ipfs_checkQm"
#fi #fi
fi fi
fi fi
......
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