Default to using testnet.s.c when running as a Snap
This commit is contained in:
@ -12,9 +12,13 @@ SOLANA_CONFIG_DIR="$SOLANA_CONFIG_DIR"-client
|
||||
if [[ ${1%:} != "$1" || "$1" =~ [^.].[^.] || -d $1 ]]; then
|
||||
leader=$1 # interpret
|
||||
shift
|
||||
else
|
||||
if [[ -d "$SNAP" ]]; then
|
||||
leader=testnet.solana.com # Default to testnet when running as a Snap
|
||||
else
|
||||
leader=$here/.. # Default to local solana repo
|
||||
fi
|
||||
fi
|
||||
|
||||
rsync_leader_url=$(rsync_url "$leader")
|
||||
|
||||
|
Reference in New Issue
Block a user