1
0
Fork 1
mirror of https://github.com/thatmattlove/hyperglass.git synced 2026-01-17 00:38:06 +00:00

fix existing directory error; closes #244, #246

This commit is contained in:
thatmattlove 2024-05-27 15:25:13 -04:00
parent e84cc4ac00
commit 58b51b7c8e

View file

@ -131,7 +131,7 @@ async def build_ui(app_path: Path):
log.error(err)
raise RuntimeError(str(err)) from err
shutil.copytree(out_dir, build_dir)
shutil.copytree(src=out_dir, dst=build_dir, dirs_exist_ok=True)
log.bind(src=out_dir, dst=build_dir).debug("Migrated Next.JS build output")
return "\n".join(all_messages)