From 2a8153a0b268e5648ef5079695cda01ef16ad892 Mon Sep 17 00:00:00 2001 From: Sudharsan Dhamal Gopalarathnam Date: Fri, 6 Jan 2023 11:54:06 -0800 Subject: [PATCH] [201911][mellanox]Fix CPLD upgrade script (#13240) Modified the skip check to be greater than or equal to compared to equal to previously --- platform/mellanox/mlnx-fw-upgrade.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/mellanox/mlnx-fw-upgrade.j2 b/platform/mellanox/mlnx-fw-upgrade.j2 index d39c53bdfd..50081bedb8 100755 --- a/platform/mellanox/mlnx-fw-upgrade.j2 +++ b/platform/mellanox/mlnx-fw-upgrade.j2 @@ -301,7 +301,7 @@ function UpgradeCPLDFW() { ExitFailure "could not retrieve current CPLD firmware version" fi - if [[ "${_CURRENT_CPLD_VERSION}" = "${_TARGET_CPLD_VERSION}" ]]; then + if [[ "${_CURRENT_CPLD_VERSION}" -ge "${_TARGET_CPLD_VERSION}" ]]; then LogInfo "CPLD firmware is up to date" return "${EXIT_SUCCESS}" fi