From f27665662cb1a4a74a15e1da25231b9227039b7b Mon Sep 17 00:00:00 2001 From: Jon Cinque Date: Fri, 11 Sep 2020 18:34:27 +0200 Subject: [PATCH] web3: Fix `docker ps` commands in localnet.sh for Travis (#12183) --- web3.js/bin/localnet.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web3.js/bin/localnet.sh b/web3.js/bin/localnet.sh index 98f637587f217b..181c0432d5c2fa 100755 --- a/web3.js/bin/localnet.sh +++ b/web3.js/bin/localnet.sh @@ -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