From 29dcce5a4283bdd5d95b8a7b62a3a3af9089d397 Mon Sep 17 00:00:00 2001 From: Olia Lisa Date: Sat, 10 Jan 2026 21:35:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20update=5Fdomain.sh=20?= =?UTF-8?q?=E8=84=9A=E6=9C=AC=EF=BC=8C=E6=B7=BB=E5=8A=A0=E5=AF=B9=20base.s?= =?UTF-8?q?h=20=E7=9A=84=E5=BC=95=E7=94=A8=E5=B9=B6=E6=A3=80=E6=9F=A5=20jq?= =?UTF-8?q?=20=E6=98=AF=E5=90=A6=E5=AE=89=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/update_domain.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/update_domain.sh b/bin/update_domain.sh index 9c12f61..b3153c8 100644 --- a/bin/update_domain.sh +++ b/bin/update_domain.sh @@ -4,7 +4,11 @@ update_domain(){ local script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" # 脚本文件夹绝对路径 source "$script_dir/utils/jq_util.sh" + source "$script_dir/utils/base.sh" local config_file="$script_dir/../config/config.json" + + # 检查jq是否安装 + check_jq # 获取旧的domain local old_domain=$(jq -r ".inbounds[0].tls.server_name" "$config_file")