From b78a2c81d0a0322c02f8fe1cb29885c23a9bec59 Mon Sep 17 00:00:00 2001 From: neil Date: Wed, 6 Jan 2016 22:30:18 +0800 Subject: [PATCH] minor, check 80 port more gracefully --- le.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/le.sh b/le.sh index f4df3766..d9dacbd4 100755 --- a/le.sh +++ b/le.sh @@ -313,7 +313,7 @@ issue() { _err "Please install netstat first." return 1 fi - netprc="$(netstat -antpl | grep ':80 ')" + netprc="$(netstat -ntpl | grep ':80 ')" if [ "$netprc" ] ; then _err "$netprc" _err "tcp port 80 is already used by $(echo "$netprc" | cut -d '/' -f 2)"