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
62351164
Commit
62351164
authored
Dec 27, 2025
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eget: move __wget to global scope for use by aria2/axel backends
parent
147723ee
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
10 deletions
+13
-10
eget
eget
+13
-10
No files found.
eget
View file @
62351164
...
...
@@ -1015,6 +1015,17 @@ case "$orig_EGET_BACKEND" in
esac
# Wrapper for wget command with all configured options
# Defined globally so it can be used by aria2/axel backends for header operations
__wget
()
{
if
[
-
n
"
$WGETUSERAGENT
"
]
;
then
docmd
$WGET
$FORCEIPV
$WGETQ
$NOGLOB
$WGETCOMPRESSED
$WGETHEADER
$WGETOUTPUTDIR
$WGETNOSSLCHECK
$WGETNODIRECTORIES
$WGETCONTINUE
$WGETTIMEOUT
$WGETREADTIMEOUT
$WGETRETRYCONNREFUSED
$WGETTRIES
$WGETLOADCOOKIES
$WGETRUSTSERVERNAMES
"
$(
eval echo
"
$WGETUSERAGENT
"
)
"
$EGET_WGET_OPTIONS
"
$@
"
else
docmd
$WGET
$FORCEIPV
$WGETQ
$NOGLOB
$WGETCOMPRESSED
$WGETHEADER
$WGETOUTPUTDIR
$WGETNOSSLCHECK
$WGETNODIRECTORIES
$WGETCONTINUE
$WGETTIMEOUT
$WGETREADTIMEOUT
$WGETRETRYCONNREFUSED
$WGETTRIES
$WGETLOADCOOKIES
$WGETRUSTSERVERNAMES
$EGET_WGET_OPTIONS
"
$@
"
fi
}
if
[
"
$EGET_BACKEND
"
=
"file"
]
;
then
...
...
@@ -1153,14 +1164,6 @@ url_get_real_url()
elif
[
"
$EGET_BACKEND
"
=
"wget"
]
;
then
__wget
()
{
if
[
-
n
"
$WGETUSERAGENT
"
]
;
then
docmd
$WGET
$FORCEIPV
$WGETQ
$NOGLOB
$WGETCOMPRESSED
$WGETHEADER
$WGETOUTPUTDIR
$WGETNOSSLCHECK
$WGETNODIRECTORIES
$WGETCONTINUE
$WGETTIMEOUT
$WGETREADTIMEOUT
$WGETRETRYCONNREFUSED
$WGETTRIES
$WGETLOADCOOKIES
$WGETRUSTSERVERNAMES
"
$(
eval echo
"
$WGETUSERAGENT
"
)
"
$EGET_WGET_OPTIONS
"
$@
"
else
docmd
$WGET
$FORCEIPV
$WGETQ
$NOGLOB
$WGETCOMPRESSED
$WGETHEADER
$WGETOUTPUTDIR
$WGETNOSSLCHECK
$WGETNODIRECTORIES
$WGETCONTINUE
$WGETTIMEOUT
$WGETREADTIMEOUT
$WGETRETRYCONNREFUSED
$WGETTRIES
$WGETLOADCOOKIES
$WGETRUSTSERVERNAMES
$EGET_WGET_OPTIONS
"
$@
"
fi
}
# put remote content to stdout
url_scat
()
...
...
@@ -1317,7 +1320,7 @@ url_pget()
}
#
left wget here
#
use __wget for headers (aria2/axel don't support this natively)
url_get_response
()
{
local
URL
=
"
$1
"
...
...
@@ -1380,7 +1383,7 @@ url_pget()
}
#
left wget here
#
use __wget for headers (aria2/axel don't support this natively)
url_get_response
()
{
local
URL
=
"
$1
"
...
...
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