File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1152,7 +1152,7 @@ get() {
11521152 is_file_str=$2
11531153 [[ ! $is_file_str ]] && is_file_str=' .json$'
11541154 # is_all_json=("$(ls $is_conf_dir | egrep $is_file_str)")
1155- readarray -t is_all_json <<< $( ls $is_conf_dir | egrep -i " $is_file_str " | sed ' /dynamic-port-.*-link/d' | head -233) # limit max 233 lines for show.
1155+ readarray -t is_all_json <<< " $(ls $is_conf_dir | egrep -i " $is_file_str " | sed '/dynamic-port-.*-link/d' | head -233)" # limit max 233 lines for show.
11561156 [[ ! $is_all_json ]] && err " 无法找到相关的配置文件: $2 "
11571157 [[ ${# is_all_json[@]} -eq 1 ]] && is_config_file=$is_all_json && is_auto_get_config=1
11581158 [[ ! $is_config_file ]] && {
Original file line number Diff line number Diff line change 11#! /bin/bash
22
33args=$@
4- is_sh_ver=v4.04
4+ is_sh_ver=v4.05
55
66. /etc/v2ray/sh/src/init.sh
You can’t perform that action at this time.
0 commit comments