Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
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
etersoft
eget
Commits
e80387ce
Commit
e80387ce
authored
May 05, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eget: use correct http download backend for ipfs via gateway
parent
4c390fcd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
eget
eget
+6
-4
No files found.
eget
View file @
e80387ce
...
...
@@ -47,7 +47,7 @@ eget()
{
if
[
-n
"
$EPMMODE
"
]
;
then
# if embedded in epm
(
unset
EGET_IPFS_GATEWAY
;
unset
EGET_IPFS_API
;
unset
EGET_IPFS_DB
;
internal_tools_eget
"
$@
"
)
(
unset
EGET_IPFS_GATEWAY
;
unset
EGET_IPFS_API
;
unset
EGET_IPFS_DB
;
EGET_BACKEND
=
$ORIG_EGET_BACKEND
internal_tools_eget
"
$@
"
)
return
fi
...
...
@@ -56,7 +56,7 @@ eget()
local
bashopt
=
''
#[ -n "$verbose" ] && bashopt='-x'
(
unset
EGET_IPFS_GATEWAY
;
unset
EGET_IPFS_API
;
unset
EGET_IPFS_DB
;
$CMDSHELL
$bashopt
$PROGDIR
/
$PROGNAME
"
$@
"
)
(
unset
EGET_IPFS_GATEWAY
;
unset
EGET_IPFS_API
;
unset
EGET_IPFS_DB
;
EGET_BACKEND
=
$ORIG_EGET_BACKEND
$CMDSHELL
$bashopt
$PROGDIR
/
$PROGNAME
"
$@
"
)
}
# TODO:
...
...
@@ -753,7 +753,8 @@ fi
WGET
=
"
$(
print_command_path wget
)
"
CURL
=
"
$(
print_command_path curl
)
"
ORIG_EGET_BACKEND
=
"
$EGET_BACKEND
"
# override backend
if
is_fileurl
"
$1
"
;
then
EGET_BACKEND
=
"file"
elif
is_ipfsurl
"
$1
"
;
then
...
...
@@ -974,7 +975,8 @@ url_get_response()
echo
"
$answer
"
}
else
fatal
"Unknown EGET_BACKEND '
$EGET_BACKEND
', logical error."
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