Skip to content

Commit 67150c8

Browse files
authored
fix: generate-kind-config.sh for macos (#1318)
Signed-off-by: itsomri <omric@nvidia.com>
1 parent 459651a commit 67150c8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

hack/generate-kind-config.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ if [[ -z "$K8S_VERSION" || -z "$OUTPUT" ]]; then
3131
exit 1
3232
fi
3333

34-
K8S_MINOR=$(echo "$K8S_VERSION" | grep -oP '(?<=v1\.)\d+')
34+
K8S_MINOR=$(echo "$K8S_VERSION" | sed -nE 's/^v1\.([0-9]+).*$/\1/p')
3535

3636
if [[ -z "$K8S_MINOR" ]]; then
3737
echo "Error: could not parse minor version from --k8s-version '$K8S_VERSION'" >&2

0 commit comments

Comments
 (0)