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 <chamilton@dyercpa.com>
This commit is contained in:
Charles Hamilton 2020-11-17 01:15:40 -05:00 committed by GitHub
parent 6eb860ca24
commit 4fd666716f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)