From 7eb4f5ca93f2bf7a7d6f0fe52065c17a01ce3c0b Mon Sep 17 00:00:00 2001 From: thatmattlove Date: Fri, 31 May 2024 23:11:08 -0400 Subject: [PATCH] fix leftover issue from #247 if build_dir does not exist --- hyperglass/frontend/__init__.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/hyperglass/frontend/__init__.py b/hyperglass/frontend/__init__.py index 2a34a522..d38cd6b2 100644 --- a/hyperglass/frontend/__init__.py +++ b/hyperglass/frontend/__init__.py @@ -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")