From 459ac84d2937b74b8c5caa03c5be49562b8864f9 Mon Sep 17 00:00:00 2001 From: Jay Lee Date: Tue, 1 Oct 2019 20:15:46 -0400 Subject: [PATCH] fix glibc/MacOS issue where equal version failed check --- src/gam-install.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gam-install.sh b/src/gam-install.sh index 7e03417b..c53f52e9 100755 --- a/src/gam-install.sh +++ b/src/gam-install.sh @@ -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