web3: Fix `docker ps` commands in localnet.sh for Travis (#12183)

This commit is contained in:
Jon Cinque 2020-09-11 18:34:27 +02:00 committed by GitHub
parent 711f3488f1
commit f27665662c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -112,7 +112,7 @@ up)
down)
(
set -x
if [[ -n "$(docker ps --filter "name=^solana-localnet$" -q)" ]]; then
if [[ $(docker ps --filter "name=^/solana-localnet$" -q) ]]; then
docker stop --time 0 solana-localnet
fi
)
@ -128,7 +128,7 @@ logs)
fi
while $follow; do
if [[ -n $(docker ps -q -f name=solana-localnet) ]]; then
if [[ $(docker ps -q -f "name=^/solana-localnet$") ]]; then
(
set -x
docker logs solana-localnet -f