From 54c94e0e0a24cfe2e3512613a046bb5ab1b95714 Mon Sep 17 00:00:00 2001 From: Viyurz <128215328+Viyurz@users.noreply.github.com> Date: Tue, 9 Jan 2024 08:36:48 +0100 Subject: [PATCH] Update script: Fix path of compose file when not run from script folder. --- update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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