From beae9b3e2822021fea741fc98282cf9e0fc1d024 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Wed, 5 Jun 2013 19:36:55 -0600 Subject: Double bracket ==/ compare lexicographically, not numerically. Unfortunately for me, that means that it works correctly *most* of the time. But, for example, [[ 10 < 2 ]], and negatives don't work. --- src/is_built | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/is_built') diff --git a/src/is_built b/src/is_built index 92b44f8..6aa9b66 100755 --- a/src/is_built +++ b/src/is_built @@ -34,7 +34,7 @@ result=$(vercmp "${pver}" "${ver}") # 0 : pver = ver # 1 : pver > ver -if [[ $result >= 0 ]] && [[ $r == 0 ]]; then +if [[ $result -ge 0 ]] && [[ $r -eq 0 ]]; then exit 0 else exit 1 -- cgit v1.2.3