Fix killproc func in cockroach smoke test

This commit is contained in:
Dan Sosedoff 2018-06-05 18:58:38 -05:00
parent 1cbcb73948
commit 8ea8960696

View File

@ -3,7 +3,9 @@
set -e
function killproc() {
lsof -i tcp:8888 | grep pgweb | awk '{print $2}' | uniq | xargs kill
if [[ $(lsof -i tcp:8888) ]]; then
lsof -i tcp:8888 | grep pgweb | awk '{print $2}' | xargs kill
fi
}
# Nuke the old container if exists.