mirror of
https://github.com/mag37/dockcheck.git
synced 2026-02-15 07:48:14 +01:00
minor fix
Fixed 2nd array that might be faulty. Further testing awaits.
This commit is contained in:
parent
f767ddacb3
commit
78a9ef2b72
1 changed files with 1 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue