Skip to content

Commit 5fb3b97

Browse files
authored
fixed broken helm version comparision (#9113)
1 parent 50be2bf commit 5fb3b97

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

build/dev-env.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,10 @@ if ! command -v helm &> /dev/null; then
4545
exit 1
4646
fi
4747

48-
HELM_VERSION=$(helm version 2>&1 | grep -oE 'v[0-9]+\.[0-9]+\.[0-9]+') || true
49-
if [[ ${HELM_VERSION} < "v3.9.0" ]]; then
50-
echo "Please upgrade helm to v3.9.0 or higher"
48+
HELM_VERSION=$(helm version 2>&1 | cut -f1 -d"," | grep -oE '[0-9]+\.[0-9]+\.[0-9]+') || true
49+
echo $HELM_VERSION
50+
if [[ ${HELM_VERSION} -lt 3.10.0 ]]; then
51+
echo "Please upgrade helm to v3.10.0 or higher"
5152
exit 1
5253
fi
5354

0 commit comments

Comments
 (0)