diff --git a/dockerfiles/base/scripts/base/startup_04_pre_cli_init.sh b/dockerfiles/base/scripts/base/startup_04_pre_cli_init.sh index b9714d9ba0f..fa5c115b9b7 100644 --- a/dockerfiles/base/scripts/base/startup_04_pre_cli_init.sh +++ b/dockerfiles/base/scripts/base/startup_04_pre_cli_init.sh @@ -287,8 +287,8 @@ compare_versions() { TAG=$(echo $VERSION_LIST_JSON | jq ".results[$COUNTER].name") TAG=${TAG//\"} - if [ "$TAG" != "nightly" ] && [ "$TAG" != "latest" ]; then - if less_than $BASE_VERSION $TAG; then + if [ "$TAG" != "nightly" ] && [ "$TAG" != "latest" ] && [ "$TAG" != "${BASE_VERSION}" ]; then + if version_lt $BASE_VERSION $TAG; then RETURN_VERSION=$TAG break; fi