diff --git a/scripts/run-beacon-node.sh b/scripts/run-beacon-node.sh new file mode 100755 index 000000000..b6e944ba1 --- /dev/null +++ b/scripts/run-beacon-node.sh @@ -0,0 +1,54 @@ +#!/bin/bash + +set -e + +cd "$(dirname $0)/.." + +NBC_BINARY=$1 +shift + +NETWORK=$1 +shift + +# Windows detection +if uname | grep -qiE "mingw|msys"; then + MAKE="mingw32-make" +else + MAKE="make" +fi + +if [[ ! -f build/${NBC_BINARY} ]]; then + cat << MISSING_BINARY_HELP + +Please build the beacon node binary by executing the following command: + +${MAKE} ${NBC_BINARY} + +MISSING_BINARY_HELP + + exit 1 +fi + +if [[ "$WEB3_URL" == "" ]]; then + cat <