diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2020-04-19 16:02:07 +0100 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2020-04-19 16:02:07 +0100 |
commit | 7846712858fa0f77b912b55029330909fe983acc (patch) | |
tree | 1c3d3a603671448040502c2fadab0ae38538592b /profiles/prefix/windows | |
parent | net-wireless/cpyrit-cuda: fix lexicographical version compare (diff) | |
download | gentoo-7846712858fa0f77b912b55029330909fe983acc.tar.gz gentoo-7846712858fa0f77b912b55029330909fe983acc.tar.bz2 gentoo-7846712858fa0f77b912b55029330909fe983acc.zip |
profiles/prefix/windows/winnt/profile.bashrc: fix lexicographical number compare
Closes: https://bugs.gentoo.org/705272
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'profiles/prefix/windows')
-rw-r--r-- | profiles/prefix/windows/winnt/profile.bashrc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/profiles/prefix/windows/winnt/profile.bashrc b/profiles/prefix/windows/winnt/profile.bashrc index 1a70e77b1cbd..9420300435cd 100644 --- a/profiles/prefix/windows/winnt/profile.bashrc +++ b/profiles/prefix/windows/winnt/profile.bashrc @@ -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] |