From 92b005c8399c950da29f971329f946baf3ab0df9 Mon Sep 17 00:00:00 2001 From: Lewis Zou Date: Tue, 30 Jul 2024 18:07:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=90=AF=E5=8A=A8=E8=84=9A?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-entrypoint.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 23e6128..53dafb9 100644 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -1,5 +1,4 @@ #!/bin/bash -set -eu generate() { # 输入文件名 @@ -22,8 +21,7 @@ generate() { fi } -CONFIG_SOURCE_V=$(env | grep "CONFIG_SOURCE") -if [ -z "$CONFIG_SOURCE_V" ]; then +if [ -z "$CONFIG_SOURCE" ]; then echo "环境变量 CONFIG_SOURCE 不存在, 使用默认配置文件" else generate "${CONFIG_SOURCE}" "/app/appsettings.json"