Commit 87f669bb authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play: small cleanup

parent d5aa1284
...@@ -25,7 +25,9 @@ epm tool eget -q -O- "https://мойассистент.рф/скачать" | gr ...@@ -25,7 +25,9 @@ epm tool eget -q -O- "https://мойассистент.рф/скачать" | gr
url_by_order() url_by_order()
{ {
local order="$1" local order="$1"
echo "https://мойассистент.рф$(cat $tmpfile | grep "/Download/" | $order -n1 | sed -e 's|.*href="||' -e 's|".*||')" local pkg="$(cat $tmpfile | grep "/Download/" | $order -n1 | sed -e 's|.*href="||' -e 's|".*||')"
[ -n "$pkg" ] || fatal "Can't get Download href"
echo "https://мойассистент.рф$pkg"
} }
case $arch-$pkg in case $arch-$pkg in
......
...@@ -10,6 +10,7 @@ for i in $PRODUCTALT ; do ...@@ -10,6 +10,7 @@ for i in $PRODUCTALT ; do
[ "$i" = "''" ] && continue [ "$i" = "''" ] && continue
if [ "$2" = "$i" ] || epm installed $PKGNAME-$i ; then if [ "$2" = "$i" ] || epm installed $PKGNAME-$i ; then
PKGNAME=$PKGNAME-$i PKGNAME=$PKGNAME-$i
break
fi fi
done done
......
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