Skip to content

Commit

Permalink
dont update if not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
ljleb committed Aug 21, 2023
1 parent f98850d commit 3461562
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions install_comfyui.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ def main(install_location):

def update(install_location):
print("[sd-webui-comfyui]", f"Updating comfyui at {install_location}...")
if not install_location.is_dir() or not any(install_location.iterdir()):
print("[sd-webui-comfyui]", f"Cannot update comfyui since it is not installed.", file=sys.stderr)
return

import git
repo = git.Repo(install_location)
current = repo.head.commit
Expand Down

0 comments on commit 3461562

Please sign in to comment.