Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
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
eepm
Commits
5d64129c
Commit
5d64129c
authored
Apr 18, 2022
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eget: fix url from page filtering
parent
74a6bb4f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
tools_eget
bin/tools_eget
+4
-2
No files found.
bin/tools_eget
View file @
5d64129c
...
...
@@ -306,10 +306,11 @@ fi
# do not support /
if
echo
"
$1
"
|
grep
-q
"/$"
;
then
if
echo
"
$1
"
|
grep
-q
"/$"
&&
[
-z
"
$2
"
]
;
then
fatal
"Use http://example.com/e/* to download all files in dir"
fi
# TODO: curl?
# If ftp protocol, just download
if
echo
"
$1
"
|
grep
-q
"^ftp://"
;
then
[
-n
"
$LISTONLY
"
]
&&
fatal
"TODO: list files for ftp:// do not supported yet"
...
...
@@ -362,7 +363,8 @@ fi
ERROR
=
0
for
fn
in
$(
get_urls | filter_glob
"
$MASK
"
| filter_order
)
;
do
sget
"
$URL
/
$(
basename
"
$fn
"
)
"
||
ERROR
=
1
is_url
"
$fn
"
||
fn
=
"
$URL
/
$(
basename
"
$fn
"
)
"
sget
"
$fn
"
||
ERROR
=
1
done
exit
$ERROR
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