重构代码,

This commit is contained in:
Olia Lisa
2026-05-28 15:34:42 +08:00
parent 7de9fcf0a9
commit 6a2e902fb3
2 changed files with 4 additions and 6 deletions
+1 -3
View File
@@ -4,9 +4,7 @@ print_share_link() {
# 检查jq是否安装
check_jq
local SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" # 脚本文件夹绝对路径
local CONFIG_DIR=$(readlink -f "$SCRIPT_DIR/../config")
local CONFIG_FILE="$CONFIG_DIR/config.json"
local CONFIG_FILE=${1}
local TYPE=$(jq -r '.inbounds[0].type' "$CONFIG_FILE")
if [ "$TYPE" = "tuic" ]; then