faucet.sh 469 B

12345678910111213141516171819
  1. #!/usr/bin/env bash
  2. #
  3. # Starts an instance of solana-faucet
  4. #
  5. here=$(dirname "$0")
  6. # shellcheck source=multinode-demo/common.sh
  7. source "$here"/common.sh
  8. [[ -f "$SOLANA_CONFIG_DIR"/faucet.json ]] || {
  9. echo "$SOLANA_CONFIG_DIR/faucet.json not found, create it by running:"
  10. echo
  11. echo " ${here}/setup.sh"
  12. exit 1
  13. }
  14. set -x
  15. # shellcheck disable=SC2086 # Don't want to double quote $solana_faucet
  16. exec $solana_faucet --keypair "$SOLANA_CONFIG_DIR"/faucet.json "$@"