Commit c72a637f authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play assistant: fix retrieving of a package URL

parent f0975f10
......@@ -33,7 +33,7 @@ epm tool eget -q -O- "$URL" | grep -A200 "Ассистент для LINUX" >$tmp
url_by_text()
{
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"
#echo "https://мойассистент.рф$pkg"
echo "https://xn--80akicokc0aablc.xn--p1ai$pkg"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment