add functions

This commit is contained in:
Dmitry Shibanov
2020-10-05 10:57:58 +03:00
parent 28b4f38d98
commit 156764e42b
2 changed files with 21 additions and 12 deletions

View File

@@ -91,4 +91,9 @@ get_latest_xcode_from_toolset() {
get_default_xcode_from_toolset() {
echo $(get_toolset_value '.xcode.default')
}
verlte() {
sortedVersion=$(echo -e "$1\n$2" | sort -V | head -n1)
[ "$1" = "$sortedVersion" ]
}