Skip to content

Commit

Permalink
web3: Fix docker ps commands in localnet.sh for Travis (#12183)
Browse files Browse the repository at this point in the history
  • Loading branch information
joncinque authored Sep 11, 2020
1 parent 711f348 commit f276656
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web3.js/bin/localnet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand All @@ -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
Expand Down

0 comments on commit f276656

Please sign in to comment.