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:
mag37 2023-02-11 23:46:56 +01:00 committed by GitHub
parent 555e472528
commit b9cfa851bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -165,7 +165,7 @@ if [ -n "$GotUpdates" ] ; then
else
ComposeFile="$ContPath/$ContConfigFile"
fi
cd "$(dirname "${ComposeFile}")"
cd "$(dirname "${ComposeFile}")" || { echo "Compose-file path error - skipping $i" ; continue ; }
$DockerBin -f "$ComposeFile" pull "$ContName"
$DockerBin -f "$ComposeFile" up -d "$ContName"
done