mirror of
https://github.com/mag37/dockcheck.git
synced 2026-04-17 18:07:46 +00:00
minor fix
Fixed 2nd array that might be faulty. Further testing awaits.
This commit is contained in:
@@ -125,13 +125,12 @@ if [ -n "$GotUpdates" ] ; then
|
|||||||
read UpdYes
|
read UpdYes
|
||||||
[ "$UpdYes" != "${UpdYes#[Yy]}" ] && choosecontainers
|
[ "$UpdYes" != "${UpdYes#[Yy]}" ] && choosecontainers
|
||||||
else
|
else
|
||||||
SelectedUpdates=${GotUpdates[@]}
|
SelectedUpdates=( "${GotUpdates[@]}" )
|
||||||
fi
|
fi
|
||||||
if [ "$UpdYes" != "${UpdYes#[Yy]}" ] ; then
|
if [ "$UpdYes" != "${UpdYes#[Yy]}" ] ; then
|
||||||
for i in "${SelectedUpdates[@]}"
|
for i in "${SelectedUpdates[@]}"
|
||||||
do
|
do
|
||||||
# Check what compose-type is installed:
|
# 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"}}')
|
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" pull
|
||||||
$DockerBin -f "$ContPath/docker-compose.yml" up -d
|
$DockerBin -f "$ContPath/docker-compose.yml" up -d
|
||||||
|
|||||||
Reference in New Issue
Block a user