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
bb331a1c
Commit
bb331a1c
authored
1 year ago
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eget: add --get-ipfs-cid to help, fix for case when IPFS is disabled (no accessible gateway)
parent
5e1bb61b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
eget
eget
+5
-4
No files found.
eget
View file @
bb331a1c
...
...
@@ -357,6 +357,7 @@ Options:
--get-response URL - get response with all headers (ever if HEAD is not acceptable)
--get-filename URL - print filename for the URL (via Content-Disposition if applicable)
--get-real-url URL - print URL after all redirects
--get-ipfs-cid URL - print CID for URL (after all redirects)
Supported URLs:
ftp:// http:// https:// file:/ ipfs://
...
...
@@ -606,12 +607,12 @@ ipfs_mode="$EGET_IPFS"
[
-z
"
$ipfs_mode
"
]
&&
[
-n
"
$EGET_IPFS_DB
"
]
&&
ipfs_mode
=
"auto"
if
[
-n
"
$LISTONLY$CHECKURL
"
]
;
then
ipfs_mode
=
"
disabled
"
ipfs_mode
=
""
EGET_IPFS_DB
=
''
fi
if
[
"
$ipfs_mode
"
!=
"disabled
"
]
&&
[
-n
"
$EGET_IPFS_DB
"
]
;
then
if
[
-n
"
$ipfs_mode
"
]
&&
[
-n
"
$EGET_IPFS_DB
"
]
;
then
ddb
=
"
$(
dirname
"
$EGET_IPFS_DB
"
)
"
if
[
-d
"
$ddb
"
]
;
then
info
"Using eget IPFS db
$EGET_IPFS_DB
"
...
...
@@ -628,7 +629,7 @@ if is_ipfsurl "$1" && [ -z "$ipfs_mode" ] || [ "$ipfs_mode" = "auto" ] ; then
select_ipfs_mode
info
"Auto selected IPFS mode:
$ipfs_mode
"
else
[
-n
"
$ipfs_mode
"
]
&&
[
"
$ipfs_mode
"
!=
"disabled"
]
&&
info
"IPFS mode:
$ipfs_mode
"
[
-n
"
$ipfs_mode
"
]
&&
info
"IPFS mode:
$ipfs_mode
"
fi
IPFS_CMD
=
''
...
...
@@ -1052,7 +1053,7 @@ url_get_filename()
fi
if
[
"
$ipfs_mode
"
!=
"disabled
"
]
&&
[
-n
"
$EGET_IPFS_DB
"
]
&&
!
is_ipfsurl
"
$1
"
;
then
if
[
-n
"
$ipfs_mode
"
]
&&
[
-n
"
$EGET_IPFS_DB
"
]
&&
!
is_ipfsurl
"
$1
"
;
then
download_to_ipfs
()
{
...
...
This diff is collapsed.
Click to expand it.
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