profiles/prefix/windows/winnt/profile.bashrc: fix lexicographical number compare
authorSergei Trofimovich <slyfox@gentoo.org>
Sun, 19 Apr 2020 15:02:07 +0000 (16:02 +0100)
committerSergei Trofimovich <slyfox@gentoo.org>
Sun, 19 Apr 2020 15:02:07 +0000 (16:02 +0100)
Closes: https://bugs.gentoo.org/705272
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
profiles/prefix/windows/winnt/profile.bashrc

index 1a70e77b1cbd57cdf29f344926545c0bc3428e5b..9420300435cdb97de269c99054dd9be711d5251b 100644 (file)
@@ -212,7 +212,7 @@ force_dest_file_opt=
 
 nextargs=( "$@" )
 
-while [[ $# > 0 ]]
+while [[ $# -gt 0 ]]
 do
        arg=${1}
        shift
@@ -260,7 +260,7 @@ ret=$?
 
 if [[ -z ${mydest} ]]
 then
-       [[ ${#mysrcs[@]} < 2 ]] && exit 0
+       [[ ${#mysrcs[@]} -lt 2 ]] && exit 0
        : "${mysrcs[@]}" "${#mysrcs[@]}"
        mydest=${mysrcs[${#mysrcs[@]}-1]}
        unset mysrcs[${#mysrcs[@]}-1]