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
6ea67f0b
Commit
6ea67f0b
authored
Jan 08, 2026
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eget: add cd workaround for axel output directory support
parent
72624577
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
eget
eget
+8
-2
No files found.
eget
View file @
6ea67f0b
...
...
@@ -1536,18 +1536,24 @@ url_sget()
url_pget
()
{
#[ -n "$USEOUTPUTDIR" ] || fatal "USEOUTPUTDIR is not set"
#
download_with_mirroring __axel "$@"
#
axel doesn't support output directory, use cd workaround
local
URL
local
oldpwd
=
"
$PWD
"
cd
"
$USEOUTPUTDIR
"
||
return
1
for
URL
in
"
$@
"
;
do
download_with_mirroring __axel
--
alternate
"
$URL
"
done
cd
"
$oldpwd
"
}
# Download file from multiple mirrors simultaneously (axel supports multiple URLs)
sget_with_mirrors
()
{
# axel downloads from all URLs simultaneously as mirrors
# axel doesn't support output directory, use cd workaround
local
oldpwd
=
"
$PWD
"
[
-
n
"
$USEOUTPUTDIR
"
]
&&
{
cd
"
$USEOUTPUTDIR
"
||
return
1
;
}
__axel
--
alternate
"
$@
"
[
-
n
"
$USEOUTPUTDIR
"
]
&&
cd
"
$oldpwd
"
}
# use __wget for headers (aria2/axel don't support this natively)
...
...
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