From 52765a66269bbc3c07c0af1dfefcd589d9dcb7f0 Mon Sep 17 00:00:00 2001 From: S Date: Sun, 1 Mar 2026 08:58:53 -0500 Subject: [PATCH] refactor: replace mapfile with compatible loop for reading manifest entries --- setup/cleanup.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/setup/cleanup.sh b/setup/cleanup.sh index 93878bf..27aea76 100755 --- a/setup/cleanup.sh +++ b/setup/cleanup.sh @@ -215,8 +215,11 @@ for host in "${HOSTS[@]}"; do ssh_key=$(host_to_ssh_key "$host") - # Read entries into array, then reverse - mapfile -t entries < <(manifest_entries "$host") + # Read entries into array, then reverse (bash 3.2 compatible — no mapfile) + entries=() + while IFS= read -r _entry_line; do + entries+=("$_entry_line") + done < <(manifest_entries "$host") if [[ ${#entries[@]} -eq 0 ]]; then log_info "No entries in ${host} manifest — skipping"