Skip to content

Commit

Permalink
fix leftover issue from #247 if build_dir does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
thatmattlove committed Jun 1, 2024
1 parent 35d9c26 commit 7eb4f5c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions hyperglass/frontend/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,6 @@ async def build_ui(app_path: Path):

if build_dir.exists():
shutil.rmtree(build_dir)
else:
build_dir.mkdir()
shutil.copytree(src=out_dir, dst=build_dir, dirs_exist_ok=False)
log.bind(src=out_dir, dst=build_dir).debug("Migrated Next.JS build output")

Expand Down

0 comments on commit 7eb4f5c

Please sign in to comment.