Skip to content

Commit a862a5f

Browse files
committed
Use the right executable ss/netstat in log message
Ensure we log the same command we executed earlier
1 parent 7e25f12 commit a862a5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hack/lib/etcd.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ kube::etcd::validate() {
4545
fi
4646
if ${port_check_command} -nat | grep "LISTEN" | grep "[\.:]${ETCD_PORT:?}" >/dev/null 2>&1; then
4747
kube::log::usage "unable to start etcd as port ${ETCD_PORT} is in use. please stop the process listening on this port and retry."
48-
kube::log::usage "$(netstat -nat | grep "[\.:]${ETCD_PORT:?} .*LISTEN")"
48+
kube::log::usage "$(${port_check_command} -nat | grep "LISTEN" | grep "[\.:]${ETCD_PORT:?}")"
4949
exit 1
5050
fi
5151

0 commit comments

Comments
 (0)