From 9815adacf8cc372d0ab3248647d5a785e25b0a76 Mon Sep 17 00:00:00 2001 From: mack-a <57424792+mack-a@users.noreply.github.com> Date: Tue, 25 Oct 2022 11:30:52 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E8=84=9A=E6=9C=AC):=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E5=AE=89=E8=A3=85dig=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index a4f6073..3d29d9e 100644 --- a/install.sh +++ b/install.sh @@ -661,9 +661,9 @@ installTools() { if ! find /usr/bin /usr/sbin | grep -q -w dig; then echoContent green " ---> 安装dig" - if [[ "${installType}" == "apt" ]]; then + if echo "${installType}" | grep -q -w "apt"; then ${installType} dnsutils >/dev/null 2>&1 - elif [[ "${installType}" == "yum" ]]; then + elif echo "${installType}" | grep -q -w "yum"; then ${installType} bind-utils >/dev/null 2>&1 fi fi @@ -1175,7 +1175,7 @@ acmeInstallSSL() { fi else echoContent green " ---> 生成证书中" - sudo "$HOME/.acme.sh/acme.sh" --issue -d "${tlsDomain}" --standalone -k ec-256 --server "${sslType}" ${installSSLIPv6} 2>&1 | tee -a /etc/v2ray-agent/tls/acme.log >/dev/null + sudo "$HOME/.acme.sh/acme.sh" --issue -d "${tlsDomain}" --standalone -k ec-256 --server "${sslType}" ${installSSLIPv6} 2>&1 | tee -a /etc/v2ray-agent/tls/acme.log >/dev/null fi readAcmeTLS } @@ -5000,7 +5000,7 @@ menu() { cd "$HOME" || exit echoContent red "\n==============================================================" echoContent green "作者:mack-a" - echoContent green "当前版本:v2.6.1" + echoContent green "当前版本:v2.6.2" echoContent green "Github:https://github.com/mack-a/v2ray-agent" echoContent green "描述:八合一共存脚本\c" showInstallStatus