From 78a9ef2b72048f20faab0671325000daa16f7b3b Mon Sep 17 00:00:00 2001 From: mag37 Date: Fri, 27 Jan 2023 18:43:34 +0100 Subject: [PATCH] minor fix Fixed 2nd array that might be faulty. Further testing awaits. --- experimental_dockcheck.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/experimental_dockcheck.sh b/experimental_dockcheck.sh index ee19e0f..b03871a 100644 --- a/experimental_dockcheck.sh +++ b/experimental_dockcheck.sh @@ -125,13 +125,12 @@ if [ -n "$GotUpdates" ] ; then read UpdYes [ "$UpdYes" != "${UpdYes#[Yy]}" ] && choosecontainers else - SelectedUpdates=${GotUpdates[@]} + SelectedUpdates=( "${GotUpdates[@]}" ) fi if [ "$UpdYes" != "${UpdYes#[Yy]}" ] ; then for i in "${SelectedUpdates[@]}" do # Check what compose-type is installed: - # if docker compose &> /dev/null ; then DockerBin="docker compose" ; else DockerBin="docker-compose" ; fi ContPath=$(docker inspect "$i" --format '{{ index .Config.Labels "com.docker.compose.project.working_dir"}}') $DockerBin -f "$ContPath/docker-compose.yml" pull $DockerBin -f "$ContPath/docker-compose.yml" up -d