From 602d5e2d60243ced9fc645e215550c9a441f3225 Mon Sep 17 00:00:00 2001 From: Kenny Yang Date: Mon, 19 May 2025 23:15:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=AD=A3=E8=84=9A=E6=9C=AC?= =?UTF-8?q?=E4=B8=AD=E7=9A=84=E6=96=87=E4=BB=B6=E5=90=8D=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E5=B9=B6=E4=BC=98=E5=8C=96=E6=89=A7=E8=A1=8C=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复了 `init_env.sh` 中下载 `docker_password.txt` 时的文件名错误,确保文件正确命名。同时优化了 `main_local.sh` 的执行流程,移除了不必要的空行并确保脚本正确执行。 --- local/init_env.sh | 2 +- main_local.sh | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/local/init_env.sh b/local/init_env.sh index 41cab73..6b57165 100644 --- a/local/init_env.sh +++ b/local/init_env.sh @@ -39,7 +39,7 @@ wget -O ~/.auto_cert_renewal.sh https://raw.githubusercontent.com/shakenny/conta chmod +x ~/.auto_cert_renewal.sh # 下载docker_password.txt -wget -O ~/docker_password https://raw.githubusercontent.com/shakenny/containerized-stack/main/local/docker_password.txt +wget -O ~/docker_password.txt https://raw.githubusercontent.com/shakenny/containerized-stack/main/local/docker_password.txt # 读取 Docker Hub 登录密码 DOCKER_PASSWORD=$(cat docker_password.txt) diff --git a/main_local.sh b/main_local.sh index 79b2ef3..036016f 100644 --- a/main_local.sh +++ b/main_local.sh @@ -1,6 +1,5 @@ -bash <(curl -sSL https://raw.githubusercontent.com/shakenny/containerized-stack/refs/heads/main/local/init_env.sh) - - cd ~ || exit wget -O ~/.init_env.sh https://raw.githubusercontent.com/shakenny/containerized-stack/refs/heads/main/local/init_env.sh -chmod +x ~/.init_env.sh \ No newline at end of file +chmod +x ~/.init_env.sh + +~/.init_env.sh \ No newline at end of file