From 9c31ef0e3cf20aad286bce234a0a32647bfd5050 Mon Sep 17 00:00:00 2001 From: Arvin <62139570+wnlen@users.noreply.github.com> Date: Fri, 20 Mar 2026 21:33:37 +0800 Subject: [PATCH] Update generate_config.sh --- scripts/generate_config.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/scripts/generate_config.sh b/scripts/generate_config.sh index 952d18d..a33d64f 100644 --- a/scripts/generate_config.sh +++ b/scripts/generate_config.sh @@ -154,18 +154,18 @@ main() { # 片段订阅:这里先保留模板拼接逻辑 TEMPLATE_FILE="" - if [ -s "$CONF_DIR/template_config.yaml" ]; then - TEMPLATE_FILE="$CONF_DIR/template_config.yaml" - elif [ -s "$TEMP_DIR/templete_config.yaml" ]; then - TEMPLATE_FILE="$TEMP_DIR/templete_config.yaml" - elif [ -s "$CONF_DIR/templete_config.yaml" ]; then - TEMPLATE_FILE="$CONF_DIR/templete_config.yaml" - elif [ -s "$PROJECT_DIR/temp/templete_config.yaml" ]; then - TEMPLATE_FILE="$PROJECT_DIR/temp/templete_config.yaml" + if [ -s "$CONF_DIR/template.yaml" ]; then + TEMPLATE_FILE="$CONF_DIR/template.yaml" + elif [ -s "$TEMP_DIR/template.yaml" ]; then + TEMPLATE_FILE="$TEMP_DIR/template.yaml" + elif [ -s "$CONF_DIR/template.yaml" ]; then + TEMPLATE_FILE="$CONF_DIR/template.yaml" + elif [ -s "$PROJECT_DIR/temp/template.yaml" ]; then + TEMPLATE_FILE="$PROJECT_DIR/temp/template.yaml" fi if [ -z "$TEMPLATE_FILE" ]; then - echo "[ERROR] missing template config file (template_config.yaml / templete_config.yaml)" >&2 + echo "[ERROR] missing template config file (template.yaml / template.yaml)" >&2 write_state "failed" "missing_template" "none" exit 1 fi