Fix killproc func in cockroach smoke test
This commit is contained in:
parent
1cbcb73948
commit
8ea8960696
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user