From 0ea68d61edd11f85e14e0e8a51e9c233a4fdf60e Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Sat, 7 Nov 2020 13:51:14 +0200 Subject: [PATCH] Add another missing file --- scripts/run-beacon-node.sh | 54 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100755 scripts/run-beacon-node.sh 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 <