mirror of
https://github.com/mag37/dockcheck.git
synced 2026-02-15 07:48:14 +01:00
releasenotes rewritten to array
This commit is contained in:
parent
ac10a96cc8
commit
87f1886d28
1 changed files with 3 additions and 3 deletions
|
|
@ -149,12 +149,12 @@ progress_bar() {
|
||||||
|
|
||||||
### Function to add user-provided urls to releasenotes
|
### Function to add user-provided urls to releasenotes
|
||||||
releasenotes() {
|
releasenotes() {
|
||||||
for update in ${Updates[@]}; do
|
for update in ${GotUpdates[@]}; do
|
||||||
found=false
|
found=false
|
||||||
while read -r container url; do
|
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
|
done < "$ScriptWorkDir"/urls.list
|
||||||
[[ $found == false ]] && printf "%s -> url missing\n" "$update" || continue
|
[[ $found == false ]] && Updates+=("$update -> url missing") || continue
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue