Commit f592c295 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play common.sh: check app version in versioned epm info firstly

parent 8913cc01
...@@ -251,7 +251,7 @@ __epm_play_remove() ...@@ -251,7 +251,7 @@ __epm_play_remove()
__epm_play_update() __epm_play_update()
{ {
local i, RES local i RES
local CMDUPDATE="$1" local CMDUPDATE="$1"
shift shift
RES=0 RES=0
......
...@@ -62,8 +62,13 @@ update_url_if_need_mirrored() ...@@ -62,8 +62,13 @@ update_url_if_need_mirrored()
get_latest_version() get_latest_version()
{ {
local epmver="$(epm --short --version)"
# TODO: use check_url_is_accessible with more short URL (domain?)
URL="https://eepm.ru/releases/$epmver/app-versions"
if ! update_url_if_need_mirrored ; then
URL="https://eepm.ru/app-versions" URL="https://eepm.ru/app-versions"
update_url_if_need_mirrored update_url_if_need_mirrored || return
fi
epm tool eget -q -O- "$URL/$1" epm tool eget -q -O- "$URL/$1"
} }
......
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