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
8a8ec75f
Commit
8a8ec75f
authored
May 10, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eget: allow download file from
http://site/page/
URL (with latest slash)
parent
5ba80912
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
eget
eget
+8
-5
No files found.
eget
View file @
8a8ec75f
...
@@ -1362,13 +1362,16 @@ if [ -n "$2" ] ; then
...
@@ -1362,13 +1362,16 @@ if [ -n "$2" ] ; then
else
else
# do not support / at the end without separately specified mask
# do not support / at the end without separately specified mask
if
echo
"
$1
"
|
grep
-q
"/$"
;
then
if
echo
"
$1
"
|
grep
-q
"/$"
;
then
fatal
"Use http://example.com/e/* to download all files in dir"
#fatal "Use http://example.com/e/* to download all files in dir"
URL
=
"
$1
"
MASK
=
""
else
# drop mask part
URL
=
"
$(
dirname
"
$1
"
)
/"
# wildcards allowed only in the last part of path
MASK
=
$(
basename
"
$1
"
)
fi
fi
# drop mask part
URL
=
"
$(
dirname
"
$1
"
)
/"
# wildcards allowed only in the last part of path
MASK
=
$(
basename
"
$1
"
)
fi
fi
# https://www.freeoffice.com/download.php?filename=freeoffice-2021-1062.x86_64.rpm
# https://www.freeoffice.com/download.php?filename=freeoffice-2021-1062.x86_64.rpm
...
...
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