Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
pull allora-chain when it exist
Browse files Browse the repository at this point in the history
  • Loading branch information
okedeji committed Jul 16, 2024
1 parent a12aeb6 commit f373f68
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion allocmd/utilities/constants.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
cliVersion = "2.0.6"
cliVersion = "2.0.7"
8 changes: 8 additions & 0 deletions allocmd/utilities/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ def create_worker_account(worker_name, faucet_url, type, network="edgenet"):
stdout=subprocess.DEVNULL,
stderr=subprocess.DEVNULL
)
else:
print(colored("Found allora-chain. Pulling latest changes...", "green"))
subprocess.run(
['git', '-C', allora_chain_dir, 'pull', 'origin', 'main'],
check=True,
stdout=subprocess.DEVNULL,
stderr=subprocess.DEVNULL
)

make_path = shutil.which('make')
if make_path:
Expand Down

0 comments on commit f373f68

Please sign in to comment.