summaryrefslogtreecommitdiff
path: root/src/is_built
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-06-05 19:36:55 -0600
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-06-05 20:01:07 -0600
commitbeae9b3e2822021fea741fc98282cf9e0fc1d024 (patch)
treeab2c55df74fb068050be1f293b9a9df24721f24f /src/is_built
parent1d6066b37e0fd4e7118a3d366d1b6a2168a70286 (diff)
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.
Diffstat (limited to 'src/is_built')
-rwxr-xr-xsrc/is_built2
1 files changed, 1 insertions, 1 deletions
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