Update dockcheck.sh

patched the self_update logic to respect (and skip interaction) if `-y|a` flag is passed.
This commit is contained in:
mag37
2023-06-28 18:03:56 +02:00
committed by GitHub
parent 48bfea9fbf
commit 6a3198eb08

View File

@ -101,7 +101,7 @@ choosecontainers() {
}
### Version check & initiate self update
[[ "$VERSION" != "$LatestRelease" ]] && { printf "New version available! Local: %s - Latest: %s \n Change Notes: %s \n" "$VERSION" "$LatestRelease" "$LatestChanges" ; self_update_select ; }
[[ "$VERSION" != "$LatestRelease" ]] && { printf "New version available! Local: %s - Latest: %s \n Change Notes: %s \n" "$VERSION" "$LatestRelease" "$LatestChanges" ; [[ -z "$UpdYes" ]] && self_update_select ; }
### Set $1 to a variable for name filtering later.
SearchName="$1"