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
a3255c45
Commit
a3255c45
authored
2 years ago
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eget: fix get_filename
parent
f3ca2658
master
devel
new3
tt1
Tags unavailable
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
tools_eget
bin/tools_eget
+11
-5
No files found.
bin/tools_eget
View file @
a3255c45
...
@@ -913,6 +913,12 @@ sget()
...
@@ -913,6 +913,12 @@ sget()
local
CID
=
"
$(
get_cid_by_url
"
$URL
"
)
"
local
CID
=
"
$(
get_cid_by_url
"
$URL
"
)
"
if
[
-n
"
$CID
"
]
;
then
if
[
-n
"
$CID
"
]
;
then
if
[
-n
"
$GETFILENAME
"
]
;
then
get_filename_by_cid
"
$CID
"
exit
fi
if
[
-z
"
$TARGET
"
]
;
then
if
[
-z
"
$TARGET
"
]
;
then
TARGET
=
"
$(
get_filename_by_cid
"
$CID
"
)
"
TARGET
=
"
$(
get_filename_by_cid
"
$CID
"
)
"
if
[
-z
"
$TARGET
"
]
;
then
if
[
-z
"
$TARGET
"
]
;
then
...
@@ -976,6 +982,11 @@ scat()
...
@@ -976,6 +982,11 @@ scat()
sget
()
sget
()
{
{
if
[
-n
"
$GETFILENAME
"
]
;
then
get_filename
"
$1
"
exit
fi
url_sget
"
$@
"
url_sget
"
$@
"
}
}
...
@@ -1068,11 +1079,6 @@ if [ -n "$CHECKURL" ] ; then
...
@@ -1068,11 +1079,6 @@ if [ -n "$CHECKURL" ] ; then
exit
exit
fi
fi
if
[
-n
"
$GETFILENAME
"
]
;
then
get_filename
"
$1
"
exit
fi
# separate part for github downloads
# separate part for github downloads
if
echo
"
$1
"
|
grep
-q
"^https://github.com/"
&&
\
if
echo
"
$1
"
|
grep
-q
"^https://github.com/"
&&
\
...
...
This diff is collapsed.
Click to expand it.
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