rub: Fixed integer comparison (Closes: Trac#3)
authorintrigeri <intrigeri@boum.org>
Tue, 19 Jun 2007 10:00:30 +0000 (10:00 +0000)
committerintrigeri <intrigeri@boum.org>
Tue, 19 Jun 2007 10:00:30 +0000 (10:00 +0000)
ChangeLog
handlers/rub

index 6ad819e60c21f75689fa12941198e65f2455ed19..1bcac309207fbf73bebc9c99b477096a82f03ae9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -28,6 +28,7 @@ version 0.9.5 -- unreleased
         . Fixed typo in rub handler that caused it to not work
         . Changed to use lib/vserver code
         . Fixed fsck error
         . Fixed typo in rub handler that caused it to not work
         . Changed to use lib/vserver code
         . Fixed fsck error
+        . Fixed integer comparison (Closes: Trac#3)
        sys:
         . Fixed typo breaking things for VServers.
         . Fix bug when vrootdir is on its own partition (Closes: #395928)
        sys:
         . Fixed typo breaking things for VServers.
         . Fix bug when vrootdir is on its own partition (Closes: #395928)
index e05b6fd129c99c5b39c12e497397e0567233b840..bdd6e99d3f8cf343e49926215b2e8cf693ab5569 100644 (file)
@@ -100,7 +100,7 @@ getconf service
 
 function rotate {
 
 
 function rotate {
 
-  if [[ "$2" < 4 ]]; then
+  if [[ "$2" -lt 4 ]]; then
     error "Rotate: minimum of 4 rotations"
     exit 1
   fi
     error "Rotate: minimum of 4 rotations"
     exit 1
   fi