From 9b6396f6dee2ae62dccf55b480616b4f08c0b223 Mon Sep 17 00:00:00 2001 From: mag37 Date: Sun, 5 Mar 2023 21:13:23 +0100 Subject: [PATCH] cleaning quoting, added env-file check. --- errorCheck.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/errorCheck.sh b/errorCheck.sh index 13c632a..30ebe52 100755 --- a/errorCheck.sh +++ b/errorCheck.sh @@ -18,9 +18,10 @@ for i in $(docker ps --filter "name=$SearchName" --format '{{.Names}}') ; do echo -e "Service name:\t\t$ContName" echo -e "Project working dir:\t$ContPath" echo -e "Compose files:\t\t$ComposeFile" + echo -e "Environment files:\t$ContEnv" echo -e "Container image:\t$ContImage" echo echo "Mounts:" - docker inspect -f '{{ range .Mounts }}{{ .Source }}:{{ .Destination }}{{ printf "\n" }}{{ end }}' $i + docker inspect -f '{{ range .Mounts }}{{ .Source }}:{{ .Destination }}{{ printf "\n" }}{{ end }}' "$i" echo done