minor fix

Fixed 2nd array that might be faulty. Further testing awaits.
This commit is contained in:
mag37 2023-01-27 18:43:34 +01:00 committed by GitHub
parent f767ddacb3
commit 78a9ef2b72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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