diff --git a/dockcheck.sh b/dockcheck.sh index a8565d8..965d794 100755 --- a/dockcheck.sh +++ b/dockcheck.sh @@ -181,7 +181,7 @@ if [ -n "$GotUpdates" ] ; then ComposeFile="$ContPath/$ContConfigFile" fi ### cd to the compose-file directory to account for people who use relative volumes, eg - ${PWD}/data:data - cd "$(dirname "${ComposeFile}")" || { echo "Path error - skipping $i" ; continue ; } + cd "$(dirname "${ContPath}")" || { echo "Path error - skipping $i" ; continue ; } docker pull "$ContImage" ### Reformat for multi-compose: IFS=',' read -r -a Confs <<< "$ContConfigFile" ; unset IFS