Skip to content

Commit

Permalink
If CHIA_ROOT dir does not exist, migrate (#1335)
Browse files Browse the repository at this point in the history
  • Loading branch information
mariano54 committed Mar 16, 2021
1 parent 312b261 commit 7b99068
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/cmds/init.py
Expand Up @@ -310,7 +310,9 @@ def chia_init(root_path: Path):
f"Please unset the environment variable and run chia init again\n"
f"or manually migrate config.yaml"
)
return
if root_path.exists():
print(f"Not migrating because {root_path} already exists")
return

print(f"Chia directory {root_path}")

Expand Down

0 comments on commit 7b99068

Please sign in to comment.