Skip to content

fix(scripts): replace mapfile with bash 3.2-compatible read loop in helm-k3s-local#1539

Open
mesutoezdil wants to merge 1 commit into
NVIDIA:mainfrom
mesutoezdil:fix/bash32-mapfile-helm-k3s
Open

fix(scripts): replace mapfile with bash 3.2-compatible read loop in helm-k3s-local#1539
mesutoezdil wants to merge 1 commit into
NVIDIA:mainfrom
mesutoezdil:fix/bash32-mapfile-helm-k3s

Conversation

@mesutoezdil
Copy link
Copy Markdown
Contributor

@mesutoezdil mesutoezdil commented May 23, 2026

mapfile is bash 4+ only. macOS ships bash 3.2, so helm-k3s-local.sh fails on the primary target platform. Replaces all three occurrences with a portable while read loop, the same fix applied to docker-build-image.sh in #1334.

  • tasks/scripts/helm-k3s-local.sh: replace mapfile -t nodes with while IFS= read -r _node in configure_ghcr_credentials, cluster_has_image, and cluster_image_platform

Testing - bash -n tasks/scripts/helm-k3s-local.sh passes on bash 3.2 and bash 5

…elm-k3s-local

macOS ships bash 3.2 which lacks mapfile/readarray. Replace all three
occurrences in configure_ghcr_credentials, cluster_has_image, and
cluster_image_platform with a portable while-read loop, consistent
with the fix applied to docker-build-image.sh in NVIDIA#1334.
@copy-pr-bot
Copy link
Copy Markdown

copy-pr-bot Bot commented May 23, 2026

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant