From 4fd666716f89ea230f389d90916f8c9ea8f2d841 Mon Sep 17 00:00:00 2001 From: Charles Hamilton <52973156+chamilton-ccn@users.noreply.github.com> Date: Tue, 17 Nov 2020 01:15:40 -0500 Subject: [PATCH] Fixed #8482 - Ubuntu version (#8598) * Bash cannot compare floating point numbers natively. This modification addresses issue #8482 and retains the intended function of the previous code. * Bash cannot compare floating point numbers natively. This modification addresses issue #8482 and retains the intended function of the previous code. Co-authored-by: Charles Hamilton --- snipeit.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snipeit.sh b/snipeit.sh index bd4b1b80e8..d6d65619b8 100755 --- a/snipeit.sh +++ b/snipeit.sh @@ -438,7 +438,7 @@ case $distro in fi ;; ubuntu) - if [ "$version" -ge "18.04" ]; then + if [ "${version//./}" -ge "1804" ]; then # Install for Ubuntu 18.04 tzone=$(cat /etc/timezone)