check_exist_port bug fixed

pull/207/head
wulabing 2019-09-24 22:39:41 +08:00 committed by GitHub
parent 1a60013471
commit 9f5df1dda2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -246,7 +246,7 @@ domain_check(){
}
port_exist_check(){
if [[ 0 -eq `lsof -i:"$1" | wc -l` ]];then
if [[ 0 -eq `lsof -i:"$1" | grep -i "listen" | wc -l` ]];then
echo -e "${OK} ${GreenBG} $1 端口未被占用 ${Font}"
sleep 1
else