Commit 3838cb2c authored by Vitaly Lipatov's avatar Vitaly Lipatov

add version_more_version for compare version 8.10 against 12.04

parent a0cf1df9
......@@ -351,3 +351,8 @@ usearg()
[ -n "$1" ] && echo "$ARG $@"
}
# return 0 if arg1 >= arg2
version_more_version()
{
[ "$2" = "$(echo -e "$1\n$2" | sort -n | head -n1)" ]
}
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