Support testnet.solana.com as first argument
This commit is contained in:
parent
c72dced8fa
commit
b7653865b1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue