Support testnet.solana.com as first argument

This commit is contained in:
Michael Vines 2018-07-02 15:17:12 -07:00
parent c72dced8fa
commit b7653865b1
1 changed files with 2 additions and 2 deletions

View File

@ -8,8 +8,8 @@ here=$(dirname "$0")
source "$here"/common.sh
SOLANA_CONFIG_DIR=config-client
# if $1 isn't host:path or some local path
if [[ ${1%:} != "$1" || -d $1 ]]; then
# if $1 isn't host:path, something.com, or a valid local path
if [[ ${1%:} != "$1" || "$1" =~ [^.].[^.] || -d $1 ]]; then
leader=$1 # interpret
shift
else