2020-05-20 22:29:47 -07:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
#
|
|
|
|
# Downloads and runs the latest stake-o-matic binary
|
|
|
|
#
|
2021-02-11 20:28:40 -08:00
|
|
|
set -e
|
2020-05-20 22:29:47 -07:00
|
|
|
|
|
|
|
solana_version=edge
|
|
|
|
curl -sSf https://raw.githubusercontent.com/solana-labs/solana/v1.0.0/install/solana-install-init.sh \
|
|
|
|
| sh -s - $solana_version \
|
|
|
|
--no-modify-path \
|
|
|
|
--data-dir ./solana-install \
|
|
|
|
--config ./solana-install/config.yml
|
|
|
|
|
2021-02-11 20:28:40 -08:00
|
|
|
PATH="$(realpath "$PWD"/solana-install/releases/"$solana_version"*/solana-release/bin/):$PATH"
|
|
|
|
echo PATH="$PATH"
|
2020-05-20 22:29:47 -07:00
|
|
|
|
|
|
|
set -x
|
2021-01-14 21:17:54 -08:00
|
|
|
solana --version
|
2020-05-20 22:29:47 -07:00
|
|
|
exec solana-stake-o-matic "$@"
|