mirror of
https://github.com/mag37/dockcheck.git
synced 2026-03-04 16:10:28 +01:00
cd to compose-file extras
Added some error handling of the new cd-line, if the cd breaks for some reason that container will be skipped with a message.
This commit is contained in:
parent
555e472528
commit
b9cfa851bd
1 changed files with 1 additions and 1 deletions
|
|
@ -165,7 +165,7 @@ if [ -n "$GotUpdates" ] ; then
|
||||||
else
|
else
|
||||||
ComposeFile="$ContPath/$ContConfigFile"
|
ComposeFile="$ContPath/$ContConfigFile"
|
||||||
fi
|
fi
|
||||||
cd "$(dirname "${ComposeFile}")"
|
cd "$(dirname "${ComposeFile}")" || { echo "Compose-file path error - skipping $i" ; continue ; }
|
||||||
$DockerBin -f "$ComposeFile" pull "$ContName"
|
$DockerBin -f "$ComposeFile" pull "$ContName"
|
||||||
$DockerBin -f "$ComposeFile" up -d "$ContName"
|
$DockerBin -f "$ComposeFile" up -d "$ContName"
|
||||||
done
|
done
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue