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
c72a637f
Commit
c72a637f
authored
Oct 03, 2022
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play assistant: fix retrieving of a package URL
parent
f0975f10
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
assistant.sh
play.d/assistant.sh
+1
-1
No files found.
play.d/assistant.sh
View file @
c72a637f
...
@@ -33,7 +33,7 @@ epm tool eget -q -O- "$URL" | grep -A200 "Ассистент для LINUX" >$tmp
...
@@ -33,7 +33,7 @@ epm tool eget -q -O- "$URL" | grep -A200 "Ассистент для LINUX" >$tmp
url_by_text
()
url_by_text
()
{
{
local
text
=
"
$1
"
local
text
=
"
$1
"
local
pkg
=
"
$(
cat
$tmpfile
|
grep
-B1
"
$text
"
|
grep
"/Download/"
|
sed
-e
's|.*href="||'
-e
's|".*||'
)
"
local
pkg
=
"
$(
cat
$tmpfile
|
grep
-B1
"
$text
"
|
head
-n1
|
grep
"/Download/"
|
sed
-e
's|.*href="||'
-e
's|".*||'
)
"
[
-n
"
$pkg
"
]
||
fatal
"Can't get Download href for
$text
"
[
-n
"
$pkg
"
]
||
fatal
"Can't get Download href for
$text
"
#echo "https://мойассистент.рф$pkg"
#echo "https://мойассистент.рф$pkg"
echo
"https://xn--80akicokc0aablc.xn--p1ai
$pkg
"
echo
"https://xn--80akicokc0aablc.xn--p1ai
$pkg
"
...
...
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