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
941f0fa6
Commit
941f0fa6
authored
Apr 10, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eget: add MADEURL as flag it is the end of of the URL
parent
e5bbbf43
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
eget
eget
+6
-1
No files found.
eget
View file @
941f0fa6
...
...
@@ -958,6 +958,9 @@ concatenate_url_and_filename()
echo
"
$(
echo
"
$url
"
|
sed
-e
's|/*$||'
)
/
$fn
"
}
# MADEURL filled with latest made URL as flag it is end form of URL
MADEURL
=
''
# Args: URL filename
make_fileurl
()
{
...
...
@@ -977,7 +980,8 @@ make_fileurl()
url
=
"
$(
dirname
"
$url
"
)
"
fi
concatenate_url_and_filename
"
$url
"
"
$fn
"
MADEURL
=
"
$(
concatenate_url_and_filename
"
$url
"
"
$fn
"
)
"
echo
"
$MADEURL
"
}
get_urls
()
...
...
@@ -1017,6 +1021,7 @@ if echo "$1" | grep -q "^https://github.com/" && \
ERROR
=
0
for
fn
in
$(
get_github_urls
"
$1
"
| filter_glob
"
$MASK
"
| filter_order
)
;
do
MADEURL
=
"
$fn
"
# mark it is the end form of the URL
sget
"
$fn
"
"
$TARGETFILE
"
||
ERROR
=
1
[
-n
"
$TARGETFILE
"
]
&&
[
"
$ERROR
"
=
"0"
]
&&
break
done
...
...
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