Skip to content

Commit 2eeba8e

Browse files
committed
updated the utils script to extract the kustomize version accurately
Signed-off-by: Mariah Holder <marholde@redhat.com>
1 parent 805ec06 commit 2eeba8e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

opendatahub/scripts/utils.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,8 @@ install_binaries() {
261261

262262
KUSTOMIZE_VERSION=5.2.1
263263
if type kustomize &> /dev/null; then
264-
if [ "v${KUSTOMIZE_VERSION}" = $(kustomize version) ]; then
264+
INSTALLED_KUSTOMIZE_VERSION=$(kustomize version | grep -o 'v[0-9]\+\.[0-9]\+\.[0-9]\+')
265+
if [ "v${KUSTOMIZE_VERSION}" = "$INSTALLED_KUSTOMIZE_VERSION" ]; then
265266
info "kustomize already installed with correct version..."
266267
else
267268
install_kustomize "${KUSTOMIZE_VERSION}"

0 commit comments

Comments
 (0)