From 3e8309bd5b7842ac734acfb241b56a094797e1d1 Mon Sep 17 00:00:00 2001 From: vincent Date: Wed, 15 May 2024 20:29:45 +0800 Subject: [PATCH] update --- bin/update_docker_images.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/update_docker_images.sh b/bin/update_docker_images.sh index 00599d3..1b34e58 100644 --- a/bin/update_docker_images.sh +++ b/bin/update_docker_images.sh @@ -1,6 +1,7 @@ #!/bin/bash -docker_compose_file="../docker-compose.yml" +script_dir="$(dirname "$(realpath "$0")")" # 当前脚本所在目录的绝对路径 +docker_compose_file=$(readlink -f "$script_dir/../docker-compose.yml") # docker-compose.yaml文件路径 # 检查是否存在 docker-compose.yml 文件 if [ ! -f $docker_compose_file ]; then