[201911][mellanox]Fix CPLD upgrade script (#13240)

Modified the skip check to be greater than or equal to compared to equal to previously
This commit is contained in:
Sudharsan Dhamal Gopalarathnam 2023-01-06 11:54:06 -08:00 committed by GitHub
parent 757130c027
commit 2a8153a0b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -301,7 +301,7 @@ function UpgradeCPLDFW() {
ExitFailure "could not retrieve current CPLD firmware version" ExitFailure "could not retrieve current CPLD firmware version"
fi 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" LogInfo "CPLD firmware is up to date"
return "${EXIT_SUCCESS}" return "${EXIT_SUCCESS}"
fi fi