From 64ff35368aa2f8004ebe9ceb3295d8b4c980bbbe Mon Sep 17 00:00:00 2001 From: lgromero Date: Thu, 25 Apr 2024 11:44:57 +0200 Subject: [PATCH] refs #310 fix mac for array declaration --- installer/ogboot_installer.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/installer/ogboot_installer.sh b/installer/ogboot_installer.sh index c59264d..0df9f84 100644 --- a/installer/ogboot_installer.sh +++ b/installer/ogboot_installer.sh @@ -74,8 +74,8 @@ generate_ipxe_script() { sed "s/SERVERIP/$ip_address/g" "$template_default" > "$default_output" echo "Creando ficheros MAC script" ls -lh - echo $MAC_ADDRESSES - for mac_address in $MAC_ADDRESSES; do + echo ${MAC_ADDRESSES[@]} + for mac_address in "${MAC_ADDRESSES[@]}"; do mac_address_lower=$(echo "$mac_address" | tr '[:upper:]' '[:lower:]') filename="01-${mac_address_lower}" echo "Creando archivo $filename..."