From c57923f152c06cc45237fa5ca63f3a139317ca2c Mon Sep 17 00:00:00 2001 From: mag37 Date: Sun, 16 Mar 2025 20:54:34 +0100 Subject: [PATCH] versionbump --- README.md | 8 +++----- dockcheck.sh | 9 ++++----- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 618eb89..46d332a 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,7 @@ ___ ## :bell: Changelog +- **v0.5.8.0**: Added version checks to all templates and a notification if a new template is released. - **v0.5.7.0**: Rewritten templates - now with a function to notify when there's a new Dockcheck release. - Manually migrate your current `notify.sh` settings to a new template for new functionality. - **v0.5.6.1**: Async xargs hotfix - due to errors `failed to request manifest head ... context canceled` @@ -29,9 +30,6 @@ ___ - To disable xargs `-P` flag (max processes) all together, set `MaxAsync` to 0. - **v0.5.6.0**: Heavily improved performance due to async checking for updates. - **v0.5.5.0**: osx and bsd compatibility changes + rewrite of dependency installer -- **v0.5.4.0**: Added support for a Prometheus+node_exporter metric collection through a file collector. -- **v0.5.3.0**: Local image check changed (use imageId instead of name) and Gotify-template fixed (whale icon removed). -- **v0.5.2.1**: Rewrite of dependency downloads, jq can be installed with package manager or static binary. ___ @@ -113,7 +111,7 @@ Add preferred `notify.sh`-template to the same directory - this will not be touc ## :loudspeaker: Notifications Trigger with the `-i` flag. Run it scheduled with `-ni` to only get notified when there's updates available! -Will also send a notification when `dockcheck.sh` itself has an update. +Will also send a notification when `dockcheck.sh` itself has an update. Use a `notify_X.sh` template file from the **notify_templates** directory, copy it to `notify.sh` alongside the script, modify it to your needs! (notify.sh is added to .gitignore) **Current templates:** @@ -147,7 +145,7 @@ nginx -> https://github.com/docker-library/official-images/blob/master/library The `urls.list` file is just an example and I'd gladly see that people contribute back when they add their preferred URLs to their lists. ## :fast_forward: Asyncronous update checks with **xargs**; `-x N` option. (default=1) -Pass `-x N` where N is number of subprocesses allowed, experiment in your environment to find a suitable max! +Pass `-x N` where N is number of subprocesses allowed, experiment in your environment to find a suitable max! Change the default value by editing the `MaxAsync=N` variable in `dockcheck.sh`. To disable the subprocess function set `MaxAsync=0`. diff --git a/dockcheck.sh b/dockcheck.sh index b717dd0..e060a89 100755 --- a/dockcheck.sh +++ b/dockcheck.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -VERSION="v0.5.7.0" -### ChangeNotes: Rewritten templates - now with a function to notify when theres a new Dockcheck release. +VERSION="v0.5.8.0" +### ChangeNotes: Added version checks to all templates and a notification if a new template is released. Github="https://github.com/mag37/dockcheck" RawUrl="https://raw.githubusercontent.com/mag37/dockcheck/main/dockcheck.sh" @@ -292,7 +292,7 @@ fi check_image() { i="$1" local Excludes=($Excludes_string) - for e in "${Excludes[@]}" ; do + for e in "${Excludes[@]}" ; do if [[ "$i" == "$e" ]]; then echo Skip $i return @@ -326,7 +326,7 @@ export -f check_image datecheck export Excludes_string="${Excludes[@]}" # Can only export scalar variables export t_out regbin RepoUrl DaysOld -# Check for POSIX xargs with -P option, fallback without async +# Check for POSIX xargs with -P option, fallback without async if (echo "test" | xargs -P 2 >/dev/null 2>&1) && [[ "$MaxAsync" != 0 ]]; then XargsAsync="-P $MaxAsync" else @@ -457,4 +457,3 @@ else fi exit 0 -