Skip to content

Commit 4e008ff

Browse files
committed
nodeup: Simplify the template by removing split-commas
1 parent 633a9b7 commit 4e008ff

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

pkg/model/resources/nodeup.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ download-or-bust() {
7474
local -r file="$1"
7575
local -r hash="$2"
7676
local -a urls
77-
mapfile -t urls < <(split-commas "$3")
77+
IFS=, read -r -a urls <<< "$3"
7878
7979
if [[ -f "${file}" ]]; then
8080
if ! validate-hash "${file}" "${hash}"; then
@@ -125,10 +125,6 @@ validate-hash() {
125125
fi
126126
}
127127
128-
function split-commas() {
129-
echo "$1" | tr "," "\n"
130-
}
131-
132128
function download-release() {
133129
case "$(uname -m)" in
134130
x86_64*|i?86_64*|amd64*)

0 commit comments

Comments
 (0)