From aba157d578b317b33ffb88f3a53c999dd64cedb3 Mon Sep 17 00:00:00 2001 From: vincent Date: Wed, 15 May 2024 22:37:06 +0800 Subject: [PATCH] update --- bin/update_docker_images.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/update_docker_images.sh b/bin/update_docker_images.sh index f5a2c91..7f126b7 100644 --- a/bin/update_docker_images.sh +++ b/bin/update_docker_images.sh @@ -1,7 +1,7 @@ #!/bin/bash -# docker-compose.yml文件路径 -docker_compose_file="../docker-compose.yml" +script_dir=$(cd "$(dirname "$0")"; pwd) # 脚本文件绝对路径 +docker_compose_file="$script_dir/../docker-compose.yml" # docker-compose.yml文件路径 # 检查是否存在 docker-compose.yml 文件 if [ ! -f $docker_compose_file ]; then