From 62b52796f22d0122738a0512988093a75f22938e Mon Sep 17 00:00:00 2001 From: mag37 Date: Fri, 4 Oct 2024 23:19:41 +0200 Subject: [PATCH] removed empty lines --- dockcheck.sh | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/dockcheck.sh b/dockcheck.sh index 0660af5..d3f5780 100755 --- a/dockcheck.sh +++ b/dockcheck.sh @@ -13,7 +13,6 @@ ScriptWorkDir="$(dirname "$ScriptPath")" LatestRelease="$(curl -s -r 0-50 $RawUrl | sed -n "/VERSION/s/VERSION=//p" | tr -d '"')" LatestChanges="$(curl -s -r 0-200 $RawUrl | sed -n "/ChangeNotes/s/### ChangeNotes: //p")" - ### Help Function: Help() { echo "Syntax: dockcheck.sh [OPTION] [part of name to filter]" @@ -150,13 +149,13 @@ progress_bar() { ### Function to add user-provided urls to releasenotes releasenotes() { - for update in ${Updates[@]}; do - found=false - while read -r container url; do - [[ $update == $container ]] && printf "%s -> %s\n" "$update" "$url" && found=true - done < "$ScriptWorkDir"/urls.list - [[ $found == false ]] && printf "%s -> url missing\n" "$update" || continue - done + for update in ${Updates[@]}; do + found=false + while read -r container url; do + [[ $update == $container ]] && printf "%s -> %s\n" "$update" "$url" && found=true + done < "$ScriptWorkDir"/urls.list + [[ $found == false ]] && printf "%s -> url missing\n" "$update" || continue + done } ### Version check & initiate self update @@ -272,7 +271,6 @@ NoUpdates=($(sort <<<"${NoUpdates[*]}")) GotUpdates=($(sort <<<"${GotUpdates[*]}")) unset IFS - ### Define how many updates are available UpdCount="${#GotUpdates[@]}"