2018-11-11 08:02:50 -08:00
|
|
|
#!/usr/bin/env bash
|
2018-06-24 10:10:55 -07:00
|
|
|
#
|
2019-12-16 13:05:17 -08:00
|
|
|
# Starts an instance of solana-faucet
|
2018-08-27 09:13:53 -07:00
|
|
|
#
|
2018-06-24 10:10:55 -07:00
|
|
|
here=$(dirname "$0")
|
2018-08-31 00:10:39 -07:00
|
|
|
|
2018-06-24 10:10:55 -07:00
|
|
|
# shellcheck source=multinode-demo/common.sh
|
|
|
|
source "$here"/common.sh
|
|
|
|
|
2020-03-13 11:41:18 -07:00
|
|
|
[[ -f "$SOLANA_CONFIG_DIR"/faucet.json ]] || {
|
|
|
|
echo "$SOLANA_CONFIG_DIR/faucet.json not found, create it by running:"
|
2018-07-02 16:10:55 -07:00
|
|
|
echo
|
2018-12-06 13:38:45 -08:00
|
|
|
echo " ${here}/setup.sh"
|
2018-07-02 16:10:55 -07:00
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
|
2019-05-13 10:51:18 -07:00
|
|
|
set -x
|
2019-12-16 13:05:17 -08:00
|
|
|
# shellcheck disable=SC2086 # Don't want to double quote $solana_faucet
|
2020-03-13 11:41:18 -07:00
|
|
|
exec $solana_faucet --keypair "$SOLANA_CONFIG_DIR"/faucet.json "$@"
|