From 87f1886d28c809d20fa59ef087e92efdb31117c0 Mon Sep 17 00:00:00 2001 From: mag37 Date: Mon, 7 Oct 2024 21:29:49 +0200 Subject: [PATCH] releasenotes rewritten to array --- dockcheck.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dockcheck.sh b/dockcheck.sh index d3f5780..d15c335 100755 --- a/dockcheck.sh +++ b/dockcheck.sh @@ -149,12 +149,12 @@ progress_bar() { ### Function to add user-provided urls to releasenotes releasenotes() { - for update in ${Updates[@]}; do + for update in ${GotUpdates[@]}; do found=false while read -r container url; do - [[ $update == $container ]] && printf "%s -> %s\n" "$update" "$url" && found=true + [[ $update == $container ]] && Updates+=("$update -> $url") && found=true done < "$ScriptWorkDir"/urls.list - [[ $found == false ]] && printf "%s -> url missing\n" "$update" || continue + [[ $found == false ]] && Updates+=("$update -> url missing") || continue done }