Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
eget
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Ivlev
eget
Commits
47c2cd82
Commit
47c2cd82
authored
Apr 17, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eget: check Brave IPFS after local ipfs in IPFS auto mode
parent
adf50de7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
eget
eget
+13
-13
No files found.
eget
View file @
47c2cd82
...
...
@@ -491,29 +491,29 @@ ipfs_check()
select_ipfs_mode
()
{
IPFS_CMD
=
"
$(
get_ipfs_brave
)
"
# if no EGET_IPFS_API, check brave
if
[
-z
"
$EGET_IPFS_API
"
]
&&
[
-n
"
$IPFS_CMD
"
]
;
then
IPFS_API
=
"
$ipfs_api_brave
"
IPFS_CMD
=
"
$(
print_command_path ipfs
)
"
if
[
-n
"
$IPFS_CMD
"
]
;
then
IPFS_API
=
"
$ipfs_api_local
"
if
ipfs_api_access
;
then
ipfs_mode
=
"
brave
"
&&
return
ipfs_mode
=
"
local
"
&&
return
#if ipfs_check "$ipfs_checkQm" ; then
# ipfs_mode="
brave
" && return
# ipfs_mode="
local
" && return
#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
IPFS_CMD
=
"
$(
print_command_path ipfs
)
"
if
[
-n
"
$IPFS_CMD
"
]
;
then
IPFS_API
=
"
$ipfs_api_local
"
IPFS_CMD
=
"
$(
get_ipfs_brave
)
"
# if no EGET_IPFS_API, check brave
if
[
-z
"
$EGET_IPFS_API
"
]
&&
[
-n
"
$IPFS_CMD
"
]
;
then
IPFS_API
=
"
$ipfs_api_brave
"
if
ipfs_api_access
;
then
ipfs_mode
=
"
local
"
&&
return
ipfs_mode
=
"
brave
"
&&
return
#if ipfs_check "$ipfs_checkQm" ; then
# ipfs_mode="
local
" && return
# ipfs_mode="
brave
" && return
#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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment