Update install.sh

如果1panel网站域名多余10个,例如11个,那选择1的时候,会取到1和11两个网站,导致后面域名校验报错
pull/1174/head
xem1987 2025-06-07 18:48:30 +08:00 committed by GitHub
parent b0406e4221
commit c7bf23e648
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

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 " ---> 选择错误,请重新选择"