修复bug

This commit is contained in:
dekun
2026-05-24 07:43:05 +08:00
parent a3218f4fbd
commit 4b5fae2946
6 changed files with 26 additions and 11 deletions
+3
View File
@@ -20,6 +20,9 @@ if [[ ! -x "${VENV_PY}" ]]; then
fi
if [[ -f .env ]]; then
if grep -q $'\r' .env 2>/dev/null; then
echo "警告: $(pwd)/.env 含 Windows 换行(CRLF),请在仓库根执行: bash manual_trading_hub/scripts/fix_env_crlf.sh" >&2
fi
if ! load_dotenv_file ".env"; then
echo "错误: $(pwd)/.env 加载失败" >&2
exit 1