Commit 90090fd3 authored by Upnode's avatar Upnode Committed by GitHub

Check geth installed with @if [ ! command -v geth ];

parent e517b897
...@@ -2,8 +2,6 @@ COMPOSEFLAGS=-d ...@@ -2,8 +2,6 @@ COMPOSEFLAGS=-d
ITESTS_L2_HOST=http://localhost:9545 ITESTS_L2_HOST=http://localhost:9545
BEDROCK_TAGS_REMOTE?=origin BEDROCK_TAGS_REMOTE?=origin
GETH_INSTALLED := $(shell command -v geth 2> /dev/null)
build: build-go build-ts build: build-go build-ts
.PHONY: build .PHONY: build
...@@ -88,6 +86,9 @@ nuke: clean devnet-clean ...@@ -88,6 +86,9 @@ nuke: clean devnet-clean
.PHONY: nuke .PHONY: nuke
devnet-up: devnet-up:
@if [ ! command -v geth ]; then \
make install-geth; \
fi
@if [ ! -e op-program/bin ]; then \ @if [ ! -e op-program/bin ]; then \
make cannon-prestate; \ make cannon-prestate; \
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment