fix glibc/MacOS issue where equal version failed check

This commit is contained in:
Jay Lee
2019-10-01 20:15:46 -04:00
parent 736b833d52
commit 459ac84d29

View File

@@ -80,7 +80,11 @@ echo -e '\x1B[0m'
version_gt()
{
test "$(printf '%s\n' "$@" | sort -V | head -n 1)" != "$1"
if [ "${1,,}" = "${2,,}" ]; then
true
else
test "$(printf '%s\n' "$@" | sort -V | head -n 1)" != "$1"
fi
}
case $gamos in