Commit 0fef9be5 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play.d/common.sh: add is_version_older helper

parent 9a4305a1
......@@ -117,6 +117,12 @@ get_deb_repo_latest_version()
| sort -V | tail -n 1
}
# Returns 0 if version $1 is older (lower) than $2.
is_version_older()
{
[ "$(epm --inscript print compare version "$1" "$2")" = "-1" ]
}
is_supported_arch()
{
......
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