Skip to content

Commit

Permalink
Make make localnet command idempotent
Browse files Browse the repository at this point in the history
Sometimes when running setup something goes wrong and the ./dao-state
dir is still hanging around, requiring manual cleanup nad preventing from simply
re-running the command.
  • Loading branch information
Justin Carter committed Nov 30, 2019
1 parent 650c589 commit e3a3fb5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ clean-build:

clean-localnet:
rm -rf $(STATE_DIR)
rm -rf ./dao-setup

# Build all Bisq binaries and generate the shell scripts used to run
# them in the targets below
Expand All @@ -123,7 +124,7 @@ build:
# Unpack and customize a Bitcoin regtest node and Alice and Bob Bisq
# nodes that have been preconfigured with a blockchain containing the
# BSQ genesis transaction
localnet:
localnet: clean-localnet
# Unpack the old dao-setup.zip and move things around for more concise
# and intuitive naming. This is a temporary measure until we clean these
# resources up more thoroughly.
Expand Down

0 comments on commit e3a3fb5

Please sign in to comment.