20 lines
469 B
Bash
Executable File
20 lines
469 B
Bash
Executable File
#!/usr/bin/env bash
|
|
#
|
|
# Starts an instance of solana-faucet
|
|
#
|
|
here=$(dirname "$0")
|
|
|
|
# shellcheck source=multinode-demo/common.sh
|
|
source "$here"/common.sh
|
|
|
|
[[ -f "$SOLANA_CONFIG_DIR"/faucet.json ]] || {
|
|
echo "$SOLANA_CONFIG_DIR/faucet.json not found, create it by running:"
|
|
echo
|
|
echo " ${here}/setup.sh"
|
|
exit 1
|
|
}
|
|
|
|
set -x
|
|
# shellcheck disable=SC2086 # Don't want to double quote $solana_faucet
|
|
exec $solana_faucet --keypair "$SOLANA_CONFIG_DIR"/faucet.json "$@"
|