Merge pull request #1174 from xem1987/patch-2

fix:1panel域名超过两位数选取一位数域名,域名校验报错
This commit is contained in:
mack-a
2025-06-09 11:14:09 +08:00
committed by GitHub

View File

@@ -594,7 +594,7 @@ checkBTPanel() {
fi
if [[ -n "${selectBTDomain}" ]]; then
btDomain=$(find /www/server/panel/vhost/cert/*/fullchain.pem | awk -F "[/]" '{print $7}' | awk '{print NR""":"$0}' | grep "${selectBTDomain}:" | cut -d ":" -f 2)
btDomain=$(find /www/server/panel/vhost/cert/*/fullchain.pem | awk -F "[/]" '{print $7}' | awk '{print NR""":"$0}' | grep -e "^${selectBTDomain}:" | cut -d ":" -f 2)
if [[ -z "${btDomain}" ]]; then
echoContent red " ---> 选择错误,请重新选择"