Skip to content

Commit

Permalink
Fixed #8482 - Ubuntu version (#8598)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
chamilton-ccn and chamilton-ccn authored Nov 17, 2020
1 parent 6eb860c commit 4fd6667
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snipeit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 4fd6667

Please sign in to comment.