fix: avoid empty --network argument

This commit is contained in:
Michael Vines 2019-08-01 09:12:23 -07:00
parent 97bfa19dd4
commit 60ac6fc5b7
1 changed files with 3 additions and 1 deletions

View File

@ -92,7 +92,6 @@ up)
ARGS=(
--detach
--name solana-localnet
--network "$network"
--rm
--publish 8899:8899
--publish 8900:8900
@ -100,6 +99,9 @@ up)
--tty
--env "RUST_LOG=$RUST_LOG"
)
if [[ -n $network ]]; then
ARGS+=(--network "$network")
fi
docker run "${ARGS[@]}" solanalabs/solana:"$channel"