Skip to content

Commit aaed92a

Browse files
OCPBUGS-61780: fix MCE install with version 2.10 (#69493)
1 parent c26029a commit aaed92a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ci-operator/step-registry/hypershift/mce/install/hypershift-mce-install-commands.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ echo "$MCE_VERSION"
1515

1616
MCE_CATALOG_PATH="acm-d/mce-custom-registry"
1717
_REPO="quay.io/$MCE_CATALOG_PATH"
18-
if (( $(awk 'BEGIN {print ("'"$MCE_VERSION"'" >= 2.9)}') )); then
18+
if [[ "$(printf '%s\n' "2.9" "$MCE_VERSION" | sort -V | head -n1)" == "2.9" ]]; then
1919
MCE_CATALOG_PATH="acm-d/mce-dev-catalog"
2020
_REPO="quay.io:443/$MCE_CATALOG_PATH"
2121
fi
@@ -88,7 +88,7 @@ oc wait mcp master worker --for condition=updated --timeout=20m
8888

8989
echo "Install MCE custom catalog source"
9090
IMG="${_REPO}:${MCE_VERSION}-latest"
91-
if (( $(awk 'BEGIN {print ("'"$MCE_VERSION"'" >= 2.9)}') )); then
91+
if [[ "$(printf '%s\n' "2.9" "$MCE_VERSION" | sort -V | head -n1)" == "2.9" ]]; then
9292
IMG="${_REPO}:latest-${MCE_VERSION}"
9393
fi
9494
oc apply -f - <<EOF

0 commit comments

Comments
 (0)