Fixup arg processing
This commit is contained in:
parent
48b5344586
commit
7d68b6edc8
|
@ -13,8 +13,9 @@ here=$(dirname "$0")
|
|||
source "$here"/common.sh
|
||||
|
||||
leader=$1
|
||||
if [[ -n $leader ]]; then
|
||||
shift
|
||||
if [[ -z $leader ]]; then
|
||||
else
|
||||
if [[ -d "$SNAP" ]]; then
|
||||
leader=testnet.solana.com # Default to testnet when running as a Snap
|
||||
else
|
||||
|
@ -23,9 +24,10 @@ if [[ -z $leader ]]; then
|
|||
fi
|
||||
|
||||
count=$1
|
||||
if [[ -n $count ]]; then
|
||||
shift
|
||||
if [[ -z $count ]]; then
|
||||
count=-1
|
||||
else
|
||||
count=1
|
||||
fi
|
||||
|
||||
loop=
|
||||
|
|
Loading…
Reference in New Issue