Default to using testnet.s.c when running as a Snap

This commit is contained in:
Michael Vines 2018-07-02 16:54:23 -07:00 committed by Grimes
parent 0dabdfd48e
commit f95a79d145
1 changed files with 5 additions and 1 deletions

View File

@ -13,7 +13,11 @@ if [[ ${1%:} != "$1" || "$1" =~ [^.].[^.] || -d $1 ]]; then
leader=$1 # interpret
shift
else
leader=$here/.. # Default to local solana repo
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")