Commit 81e3bde1 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play common.sh: check applications' version by major epm version

parent 96108b27
......@@ -154,6 +154,7 @@ get_latest_version()
local ver
local epmver="$(epm --short --version)"
local URL
epmver=$(echo "$epmver" | sed -e 's|\.[0-9]*$||')
for URL in "https://eepm.ru/releases/$epmver/app-versions" "https://eepm.ru/app-versions" ; do
ver="$(eget -q -O- "$URL/$1")" || continue
ver="$(echo "$ver" | head -n1 | cut -d" " -f1)"
......
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