Use numeric comparisons
micahflee opened this issue · 0 comments
micahflee commented
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