File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ is_log_dir=/var/log/$is_core
6969is_sh_bin=/usr/local/bin/$is_core
7070is_sh_dir=$is_core_dir /sh
7171is_sh_repo=$author /$is_core
72- is_pkg=" wget unzip jq qrencode "
72+ is_pkg=" wget unzip jq"
7373is_config_json=$is_core_dir /config.json
7474tmp_var_lists=(
7575 tmpcore
Original file line number Diff line number Diff line change @@ -203,7 +203,7 @@ is_port_used() {
203203 fi
204204 is_cant_test_port=1
205205 msg " $is_warn 无法检测端口是否可用."
206- msg " 请执行: $( _yellow " ${cmd} update -y; ${cmd} install net-tools -y" ) 来修复此问题."
206+ msg " 请执行: $( _yellow " ${cmd} update -y; ${cmd} install net-tools -y" ) 来修复此问题."
207207}
208208
209209# ask input a string or pick a option for list.
@@ -1553,7 +1553,11 @@ url_qr() {
15531553 link=" https://233boy.github.io/tools/qr.html#${is_url} "
15541554 msg " \n------------- $is_config_name & QR code 二维码 -------------"
15551555 msg
1556- qrencode -t ANSI " ${is_url} "
1556+ if [[ $( type -P qrencode) ]]; then
1557+ qrencode -t ANSI " ${is_url} "
1558+ else
1559+ msg " 请安装 qrencode: $( _green " $cmd update -y; $cmd install qrencode -y" ) "
1560+ fi
15571561 msg
15581562 msg " 如果无法正常显示或识别, 请使用下面的链接来生成二维码:"
15591563 msg " \n\e[4;${is_color} m${link} \e[0m\n"
Original file line number Diff line number Diff line change 11#! /bin/bash
22
33args=$@
4- is_sh_ver=v4.05
4+ is_sh_ver=v4.06
55
66. /etc/v2ray/sh/src/init.sh
You can’t perform that action at this time.
0 commit comments