diff --git a/README.md b/README.md index 7170cce..4b6e3d9 100644 --- a/README.md +++ b/README.md @@ -44,8 +44,8 @@ Options: -h Print this Help. -a|y Automatic updates, without interaction. -n No updates, only checking availability. --p Auto-Prune dangling images after update. -e Exclude containers, separated by comma. +-p Auto-Prune dangling images after update. -r Allow updating images for docker run, wont update the container. ``` @@ -87,7 +87,7 @@ dockcheck is created and released under the [GNU GPL v3.0](https://www.gnu.org/l ___ ## Check out a spinoff brother-project: -### [Palleri/dockcheck-web](https://github.com/Palleri/dockcheck-web) for a WebUI-front! +### [Palleri/DCW](https://github.com/Palleri/DCW) for a WebUI-front with exporters and notifications. ## Special Thanks: - :bison: [t0rnis](https://github.com/t0rnis) diff --git a/dc_brief.sh b/dc_brief.sh index 0982e3b..c188ae0 100755 --- a/dc_brief.sh +++ b/dc_brief.sh @@ -16,7 +16,7 @@ IFS=',' read -r -a Excludes <<< "$Exclude" ; unset IFS SearchName="$1" for i in $(docker ps --filter "name=$SearchName" --format '{{.Names}}') ; do - [[ " ${Excludes[*]} " =~ ${i} ]] && continue; # Skip if the container is excluded + for e in "${Excludes[@]}" ; do [[ "$i" == "$e" ]] && continue 2 ; done printf ". " RepoUrl=$(docker inspect "$i" --format='{{.Config.Image}}') LocalHash=$(docker image inspect "$RepoUrl" --format '{{.RepoDigests}}')