micahflee/fixubuntu

Use numeric comparisons

micahflee opened this issue · 0 comments

From 596a8aa#commitcomment-4566605:

Hey, this performs a string comparison, not a numeric one. Try this for example

$ [ 3 \< 12.10 ] && echo true || echo false
false

You can use awk to compare decimals

if awk "BEGIN {exit !($V < 12.10)}"; then