From 4e008ffe7a59a3e99fc92098aa67fdae28bbaf3e Mon Sep 17 00:00:00 2001 From: Ciprian Hacman Date: Sun, 24 Aug 2025 17:05:42 +0300 Subject: [PATCH] nodeup: Simplify the template by removing split-commas --- pkg/model/resources/nodeup.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pkg/model/resources/nodeup.go b/pkg/model/resources/nodeup.go index db98de43af..372f03f1fa 100644 --- a/pkg/model/resources/nodeup.go +++ b/pkg/model/resources/nodeup.go @@ -74,7 +74,7 @@ download-or-bust() { local -r file="$1" local -r hash="$2" local -a urls - mapfile -t urls < <(split-commas "$3") + IFS=, read -r -a urls <<< "$3" if [[ -f "${file}" ]]; then if ! validate-hash "${file}" "${hash}"; then @@ -125,10 +125,6 @@ validate-hash() { fi } -function split-commas() { - echo "$1" | tr "," "\n" -} - function download-release() { case "$(uname -m)" in x86_64*|i?86_64*|amd64*)