中控增加下单,关键位,系统设置

This commit is contained in:
dekun
2026-05-22 10:44:42 +08:00
parent 23f0d5a74d
commit 493b4ff3fb
7 changed files with 134 additions and 11 deletions
@@ -0,0 +1,16 @@
# shellcheck shell=bash
# 供 run_agent.sh / run_hub.sh source:加载 .env 并去掉 Windows CRLF$'\r'
load_dotenv_file() {
local f="$1"
if [[ ! -f "${f}" ]]; then
return 1
fi
set -a
set +e
# shellcheck disable=SC1090
. <(sed 's/\r$//' "${f}")
local rc=$?
set -e
set +a
return "${rc}"
}