toolchain.eclass: use https:// for git protocol, bug #717056
[gentoo.git] / eclass / portability.eclass
index 4f29725e2e32bff32f9e191a716f474182bb94b1..1402c0420cb0c6b16a58f94ea7c9901f04c557b8 100644 (file)
@@ -1,6 +1,5 @@
 # Copyright 1999-2014 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Id$
 
 # @ECLASS: portability.eclass
 # @MAINTAINER:
@@ -68,8 +67,8 @@ seq() {
 
        # Screw it, do the output ourselves
        while :; do
-               [[ $max < $min && $step > 0 ]] && break
-               [[ $min < $max && $step < 0 ]] && break
+               [[ $max -lt $min && $step -gt 0 ]] && break
+               [[ $min -lt $max && $step -gt 0 ]] && break
                echo $min
                : $(( min += step ))
        done