diff options
author | Ilya Mashchenko <ilya@netdata.cloud> | 2020-08-03 15:04:48 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-03 15:04:48 +0300 |
commit | e8403221097a4ef3772fc4b4935ab30cb52e7b31 (patch) | |
tree | 075f53498ccef6c73c1208e6d721a82fa3a6ab46 /netdata-installer.sh | |
parent | bdda59ce541dc0be0092328ba74f01f057871989 (diff) |
installer: fix `govercomp` (#9646)
Diffstat (limited to 'netdata-installer.sh')
-rwxr-xr-x | netdata-installer.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/netdata-installer.sh b/netdata-installer.sh index 299d82eea4..007018835d 100755 --- a/netdata-installer.sh +++ b/netdata-installer.sh @@ -1211,7 +1211,7 @@ govercomp() { for ((i = 0; i < ${#ver1[@]}; i++)); do if [ "${ver1[i]}" -gt "${ver2[i]}" ]; then return 1 - elif [ "${ver1[i]}" -gt "${ver2[i]}" ]; then + elif [ "${ver2[i]}" -gt "${ver1[i]}" ]; then return 2 fi done |