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
c4535a49
Commit
c4535a49
authored
Apr 05, 2024
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eget: add list url support for .md (markdown)
parent
e3cd9624
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
tools_eget
bin/tools_eget
+7
-0
No files found.
bin/tools_eget
View file @
c4535a49
...
...
@@ -1387,6 +1387,13 @@ get_urls()
return
fi
# Markdown support
# https://raw.githubusercontent.com/dotnet/core/main/release-notes/8.0/8.0.3/8.0.103.md
if
echo
"
$URL
"
|
grep
-q
"
\.
md$"
;
then
scat
$URL
|
grep
"https*"
|
sed
-e
's|.*\(https*://\)|\1|'
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"
|
\
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