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
2676c15a
Commit
2676c15a
authored
Apr 18, 2025
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eget: quote $URL
parent
77a2012a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
tools_eget
bin/tools_eget
+3
-3
No files found.
bin/tools_eget
View file @
2676c15a
...
...
@@ -1495,7 +1495,7 @@ get_github_urls()
[
-n
"
$project
"
]
||
fatal
"Can't get project from
$1
"
local
URL
=
"https://api.github.com/repos/
$owner
/
$project
/releases"
# api sometime returns unformatted json
scat
$URL
|
sed
-e
's|,\(["{]\)|,\n\1|g'
|
\
scat
"
$URL
"
|
sed
-e
's|,\(["{]\)|,\n\1|g'
|
\
grep
-i
-o
-E
'"browser_download_url": *"https://.*"'
|
cut
-d
'"'
-f4
}
...
...
@@ -1547,12 +1547,12 @@ get_urls()
# Hack: Converted markdown support
# https://github.com/dotnet/core/blob/main/release-notes/9.0/preview/rc1/9.0.0-rc.1.md
if
false
&&
echo
"
$URL
"
|
grep
-q
"
\.
md$"
;
then
scat
$URL
|
sed
-e
's|<|<\n|g'
|
grep
"https*"
|
sed
-e
's|.*\(https*://\)|\1|'
-e
's|".*||g'
scat
"
$URL
"
|
sed
-e
's|<|<\n|g'
|
grep
"https*"
|
sed
-e
's|.*\(https*://\)|\1|'
-e
's|".*||g'
return
fi
# cat html, divide to lines by tags and cut off hrefs only
scat
$URL
|
sed
-e
's|<|<\n|g'
-e
's|data-file=|href=|g'
-e
"s|href=http|href=
\"
http|g"
-e
"s|>|
\"
>|g"
-e
"s|'|
\"
|g"
|
\
scat
"
$URL
"
|
sed
-e
's|<|<\n|g'
-e
's|data-file=|href=|g'
-e
"s|href=http|href=
\"
http|g"
-e
"s|>|
\"
>|g"
-e
"s|'|
\"
|g"
|
\
grep
-i
-o
-E
'href="(.+)"'
|
sed
-e
's|&|\&|'
|
cut
-d
'"'
-f2
}
...
...
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