From d69446a11b14437bf9c0bf39af97266ba61eac1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20G=C3=B6ls?= <6608231+Abrynos@users.noreply.github.com> Date: Mon, 10 Jun 2024 23:06:44 +0200 Subject: [PATCH] Bulletproof ci.py (#107) --- ci.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ci.py b/ci.py index b60d48d..e738002 100644 --- a/ci.py +++ b/ci.py @@ -81,7 +81,10 @@ for port in CYD_PORTS: add_configuration(port) os.chdir(BASE_DIR) -shutil.copytree("./out", "./_site/out") +out_dir = "./_site/out" +if os.path.exists(out_dir): + shutil.rmtree(out_dir) +shutil.copytree("./out", out_dir) with open("./_site/OTA.json", "w") as f: json.dump({"Configurations": configurations}, f)