重构代码, 迁移导入依赖文件语句位置
This commit is contained in:
+1
-1
@@ -1,4 +1,5 @@
|
||||
#!/bin/bash
|
||||
source "$(dirname "$0")/utils/jq_util.sh"
|
||||
|
||||
|
||||
# 查找随机空闲端口
|
||||
@@ -78,7 +79,6 @@ update_port(){
|
||||
local script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" # 脚本文件夹绝对路径
|
||||
|
||||
local config_dir="$script_dir/../config"
|
||||
source "$script_dir/utils/jq_util.sh"
|
||||
|
||||
local port=$(find_free_port)
|
||||
modify_json_file "$config_dir/config.json" ".inbounds[0].listen_port" "$port"
|
||||
|
||||
Reference in New Issue
Block a user