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
77a2012a
Commit
77a2012a
authored
Apr 18, 2025
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eget: add --no-glob support
parent
7dcb0fc8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
tools_eget
bin/tools_eget
+10
-4
No files found.
bin/tools_eget
View file @
77a2012a
...
@@ -4,9 +4,9 @@
...
@@ -4,9 +4,9 @@
# Use:
# Use:
# eget http://ftp.altlinux.ru/pub/security/ssl/*
# eget http://ftp.altlinux.ru/pub/security/ssl/*
#
#
# Copyright (C) 2014-2014, 2016, 2020, 2022 Etersoft
# Copyright (C) 2014-2014, 2016, 2020, 2022
, 2025
Etersoft
# Copyright (C) 2014 Daniil Mikhailov <danil@etersoft.ru>
# Copyright (C) 2014 Daniil Mikhailov <danil@etersoft.ru>
# Copyright (C) 2016-2017, 2020, 2022 Vitaly Lipatov <lav@etersoft.ru>
# Copyright (C) 2016-2017, 2020, 2022
, 2025
Vitaly Lipatov <lav@etersoft.ru>
#
#
# This program is free software: you can redistribute it and/or modify
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# it under the terms of the GNU Affero General Public License as published by
...
@@ -339,6 +339,7 @@ CURLRETRY=''
...
@@ -339,6 +339,7 @@ CURLRETRY=''
WGETLOADCOOKIES
=
''
WGETLOADCOOKIES
=
''
CURLCOOKIE
=
''
CURLCOOKIE
=
''
NOGLOB
=
''
LISTONLY
=
''
LISTONLY
=
''
CHECKURL
=
''
CHECKURL
=
''
CHECKSITE
=
''
CHECKSITE
=
''
...
@@ -384,6 +385,7 @@ Options:
...
@@ -384,6 +385,7 @@ Options:
-P|--output-dir - download to this directory
-P|--output-dir - download to this directory
-nd|--no-directories - do not create a hierarchy of directories when retrieving recursively
-nd|--no-directories - do not create a hierarchy of directories when retrieving recursively
--no-glob - turn off file name globbing
-c|--continue - continue getting a partially-downloaded file
-c|--continue - continue getting a partially-downloaded file
-T|--timeout=N - set the network timeout to N seconds
-T|--timeout=N - set the network timeout to N seconds
--read-timeout=N - set the read (and write) timeout to N seconds
--read-timeout=N - set the read (and write) timeout to N seconds
...
@@ -533,6 +535,9 @@ while [ -n "$1" ] ; do
...
@@ -533,6 +535,9 @@ while [ -n "$1" ] ; do
-nd
|
--no-directories
)
-nd
|
--no-directories
)
WGETNODIRECTORIES
=
"
$1
"
WGETNODIRECTORIES
=
"
$1
"
;;
;;
--no-glob
)
NOGLOB
=
"
$1
"
;;
-c
|
--continue
)
-c
|
--continue
)
WGETCONTINUE
=
"
$1
"
WGETCONTINUE
=
"
$1
"
CURLCONTINUE
=
"-C -"
CURLCONTINUE
=
"-C -"
...
@@ -1605,13 +1610,14 @@ if is_ipfsurl "$1" ; then
...
@@ -1605,13 +1610,14 @@ if is_ipfsurl "$1" ; then
exit
exit
fi
fi
SEPMASK
=
""
# if mask is the second arg
# if mask is the second arg
if
[
-n
"
$2
"
]
;
then
if
[
-n
"
$2
"
]
;
then
URL
=
"
$1
"
URL
=
"
$1
"
MASK
=
"
$2
"
MASK
=
"
$2
"
SEPMASK
=
"
$2
"
SEPMASK
=
"
$2
"
else
else
if
have_end_slash_or_php_parametr
"
$1
"
;
then
if
[
-n
"
$NOGLOB
"
]
||
have_end_slash_or_php_parametr
"
$1
"
;
then
URL
=
"
$1
"
URL
=
"
$1
"
MASK
=
""
MASK
=
""
else
else
...
@@ -1624,7 +1630,7 @@ else
...
@@ -1624,7 +1630,7 @@ else
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
if
echo
"
$URL
"
|
grep
-q
"[*
\[\]
]"
;
then
if
[
-z
"
$NOGLOB
"
]
&&
echo
"
$URL
"
|
grep
-q
-P
"[*
\[\]
]"
;
then
fatal
"Error: there are globbing symbol (*[]) in
$URL
. It is allowed only for mask part"
fatal
"Error: there are globbing symbol (*[]) in
$URL
. It is allowed only for mask part"
fi
fi
...
...
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