Skip to content

Commit

Permalink
chore(build): Fix Run make dev-env syntax error (#10294)
Browse files Browse the repository at this point in the history
* fix: Run make dev-env syntax error #10293

Signed-off-by: Son Bui <[email protected]>

* fix: Run make dev-env value too great for base #10294

---------

Signed-off-by: Son Bui <[email protected]>
  • Loading branch information
sonbui00 authored Aug 31, 2023
1 parent 616d7e9 commit 46d87d3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build/dev-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,11 @@ if ! command -v helm &> /dev/null; then
exit 1
fi

function ver { printf "%d%03d%03d" $(echo "$1" | tr '.' ' '); }

HELM_VERSION=$(helm version 2>&1 | cut -f1 -d"," | grep -oE '[0-9]+\.[0-9]+\.[0-9]+') || true
echo $HELM_VERSION
if [[ ${HELM_VERSION} -lt 3.10.0 ]]; then
if [[ $(ver $HELM_VERSION) -lt $(ver "3.10.0") ]]; then
echo "Please upgrade helm to v3.10.0 or higher"
exit 1
fi
Expand Down

0 comments on commit 46d87d3

Please sign in to comment.