diff --git a/update.sh b/update.sh index 7d99097..c72df30 100755 --- a/update.sh +++ b/update.sh @@ -30,7 +30,7 @@ function up { # Checks if at least one container can be updated # $1 = project name function has_update { - readarray -t cont_list < <(docker-compose -f "$1/docker-compose.yaml" ps -a | tail -n+3 | cut -d ' ' -f 1) + readarray -t cont_list < <(docker-compose -f "$rel_path/$1/docker-compose.yaml" ps -a | tail -n+3 | cut -d ' ' -f 1) for cont in "${cont_list[@]}"; do # Return true if container doesn't exist if ! docker ps -a --format='{{.Names}}' | grep -q "$cont"; then