Update start.sh

This commit is contained in:
wnlen
2026-01-14 22:21:01 +08:00
committed by GitHub
parent 3fd6d3326a
commit 5dd8c68f08

View File

@ -347,6 +347,12 @@ if [ ! -s "$Conf_Dir/config.yaml" ]; then
exit 1 exit 1
fi fi
# 最终护栏:禁止未渲染的占位符进入运行态
if grep -q '\${' "$Conf_Dir/config.yaml"; then
echo "[ERROR] config.yaml contains unresolved placeholders (\${...}). Please check template rendering." >&2
exit 1
fi
echo -e '\n正在启动Clash服务...' echo -e '\n正在启动Clash服务...'
Text5="服务启动成功!" Text5="服务启动成功!"
Text6="服务启动失败!" Text6="服务启动失败!"