mirror of
https://github.com/mag37/dockcheck.git
synced 2026-04-19 19:07:50 +00:00
removed empty lines
This commit is contained in:
16
dockcheck.sh
16
dockcheck.sh
@@ -13,7 +13,6 @@ ScriptWorkDir="$(dirname "$ScriptPath")"
|
|||||||
LatestRelease="$(curl -s -r 0-50 $RawUrl | sed -n "/VERSION/s/VERSION=//p" | tr -d '"')"
|
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")"
|
LatestChanges="$(curl -s -r 0-200 $RawUrl | sed -n "/ChangeNotes/s/### ChangeNotes: //p")"
|
||||||
|
|
||||||
|
|
||||||
### Help Function:
|
### Help Function:
|
||||||
Help() {
|
Help() {
|
||||||
echo "Syntax: dockcheck.sh [OPTION] [part of name to filter]"
|
echo "Syntax: dockcheck.sh [OPTION] [part of name to filter]"
|
||||||
@@ -150,13 +149,13 @@ 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 ${Updates[@]}; 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 ]] && printf "%s -> %s\n" "$update" "$url" && found=true
|
||||||
done < "$ScriptWorkDir"/urls.list
|
done < "$ScriptWorkDir"/urls.list
|
||||||
[[ $found == false ]] && printf "%s -> url missing\n" "$update" || continue
|
[[ $found == false ]] && printf "%s -> url missing\n" "$update" || continue
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
### Version check & initiate self update
|
### Version check & initiate self update
|
||||||
@@ -272,7 +271,6 @@ NoUpdates=($(sort <<<"${NoUpdates[*]}"))
|
|||||||
GotUpdates=($(sort <<<"${GotUpdates[*]}"))
|
GotUpdates=($(sort <<<"${GotUpdates[*]}"))
|
||||||
unset IFS
|
unset IFS
|
||||||
|
|
||||||
|
|
||||||
### Define how many updates are available
|
### Define how many updates are available
|
||||||
UpdCount="${#GotUpdates[@]}"
|
UpdCount="${#GotUpdates[@]}"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user