File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -685,14 +685,22 @@ check_cli_version() {
685685 msg " Checking minimum required CLI version (${min_version} ) against installed version ($version )"
686686
687687 if [ $x -lt $min_x ]; then
688+ # major version is less than required. fail.
688689 return 1
690+ elif [ $x -gt $min_x ]; then
691+ # major version is greater than required. succeed.
692+ return 0
689693 elif [ $y -lt $min_y ]; then
694+ # minor version is less than required. fail.
690695 return 1
691696 elif [ $y -gt $min_y ]; then
697+ # minor version is greater than required. succeed.
692698 return 0
693699 elif [ $z -ge $min_z ]; then
700+ # patch version is at least the required version. succeed.
694701 return 0
695702 else
703+ # patch version is insufficient. fail.
696704 return 1
697705 fi
698706}
You can’t perform that action at this time.
0 commit comments