remove qrencode install

This commit is contained in:
233boy
2023-05-24 21:36:36 +08:00
parent b09b8b5c51
commit bf8867cc63
3 changed files with 8 additions and 4 deletions

View File

@@ -69,7 +69,7 @@ is_log_dir=/var/log/$is_core
is_sh_bin=/usr/local/bin/$is_core is_sh_bin=/usr/local/bin/$is_core
is_sh_dir=$is_core_dir/sh is_sh_dir=$is_core_dir/sh
is_sh_repo=$author/$is_core is_sh_repo=$author/$is_core
is_pkg="wget unzip jq qrencode" is_pkg="wget unzip jq"
is_config_json=$is_core_dir/config.json is_config_json=$is_core_dir/config.json
tmp_var_lists=( tmp_var_lists=(
tmpcore tmpcore

View File

@@ -203,7 +203,7 @@ is_port_used() {
fi fi
is_cant_test_port=1 is_cant_test_port=1
msg "$is_warn 无法检测端口是否可用." msg "$is_warn 无法检测端口是否可用."
msg "请执行: $(_yellow "${cmd}update -y; ${cmd}install net-tools -y") 来修复此问题." msg "请执行: $(_yellow "${cmd} update -y; ${cmd} install net-tools -y") 来修复此问题."
} }
# ask input a string or pick a option for list. # ask input a string or pick a option for list.
@@ -1553,7 +1553,11 @@ url_qr() {
link="https://233boy.github.io/tools/qr.html#${is_url}" link="https://233boy.github.io/tools/qr.html#${is_url}"
msg "\n------------- $is_config_name & QR code 二维码 -------------" msg "\n------------- $is_config_name & QR code 二维码 -------------"
msg msg
if [[ $(type -P qrencode) ]]; then
qrencode -t ANSI "${is_url}" qrencode -t ANSI "${is_url}"
else
msg "请安装 qrencode: $(_green "$cmd update -y; $cmd install qrencode -y")"
fi
msg msg
msg "如果无法正常显示或识别, 请使用下面的链接来生成二维码:" msg "如果无法正常显示或识别, 请使用下面的链接来生成二维码:"
msg "\n\e[4;${is_color}m${link}\e[0m\n" msg "\n\e[4;${is_color}m${link}\e[0m\n"

View File

@@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
args=$@ args=$@
is_sh_ver=v4.05 is_sh_ver=v4.06
. /etc/v2ray/sh/src/init.sh . /etc/v2ray/sh/src/init.sh