From b59af3f83f8c645a77de78360d27fd0a93863771 Mon Sep 17 00:00:00 2001 From: mack-a <57424792+mack-a@users.noreply.github.com> Date: Wed, 19 Oct 2022 17:43:06 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E8=84=9A=E6=9C=AC):=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E7=AB=AF=E5=8F=A3=E7=9A=84=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/install.sh b/install.sh index 0037e84..a4f6073 100644 --- a/install.sh +++ b/install.sh @@ -1174,7 +1174,8 @@ acmeInstallSSL() { fi fi else - 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 + 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 fi readAcmeTLS } @@ -1193,11 +1194,15 @@ customPortFunction() { echo echoContent yellow "请输入自定义端口[例: 2083],自定义端口后只允许使用DNS申请证书,[回车]使用443" read -r -p "端口:" customPort - if ((customPort >= 1 && customPort <= 65535)); then - checkCustomPort + if [[ -n "${customPort}" ]]; then + if ((customPort >= 1 && customPort <= 65535)); then + checkCustomPort + else + echoContent green " ---> 端口输入错误" + exit + fi else - echoContent green " ---> 端口输入错误" - exit + echoContent yellow "\n ---> 端口: 443" fi fi