重构代码

This commit is contained in:
Olia Lisa
2026-01-10 19:53:01 +08:00
parent dd0de70578
commit 181ac506d5
6 changed files with 14 additions and 15 deletions
+2 -3
View File
@@ -1,9 +1,8 @@
#!/bin/bash
update_key(){
script_dir=$(cd "$(dirname "$0")"; pwd) # 脚本文件绝对路径
config_dir="$script_dir/../conf"
local script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" # 脚本文件绝对路径
local config_dir="$script_dir/../conf"
source $script_dir/utils/jq_util.sh
# 使用docker运行xray镜像生成密钥文件