Skip to content

Commit

Permalink
fix(solana-localnet): |logs| now works correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
mvines committed Oct 3, 2018
1 parent 90b869b commit 9075ed3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions bin/localnet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,15 @@ EOF

[[ -n $1 ]] || usage
cmd="$1"
shift

channel=beta

docker --version || usage "It appears that docker is not installed"
case $cmd in
update)
if [[ -n $2 ]]; then
channel="$2"
if [[ -n $1 ]]; then
channel="$1"
fi
[[ $channel = edge || $channel = beta ]] || usage "Invalid channel: $channel"

Expand All @@ -52,8 +53,8 @@ update)
)
;;
up)
if [[ -n $2 ]]; then
channel="$2"
if [[ -n $1 ]]; then
channel="$1"
fi
[[ $channel = edge || $channel = beta ]] || usage "Invalid channel: $channel"

Expand Down

0 comments on commit 9075ed3

Please sign in to comment.