remove qrencode install
This commit is contained in:
@@ -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
|
||||||
|
@@ -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
|
||||||
qrencode -t ANSI "${is_url}"
|
if [[ $(type -P qrencode) ]]; then
|
||||||
|
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"
|
||||||
|
Reference in New Issue
Block a user