mirror of
https://github.com/Cockatrice/Magic-Spoiler.git
synced 2026-03-21 17:54:59 -05:00
Add .git check
Signed-off-by: Zach Halpern <ZaHalpern+github@gmail.com>
This commit is contained in:
parent
cb88104849
commit
b9d2034948
|
|
@ -546,6 +546,9 @@ def delete_old_files() -> None:
|
|||
"README",
|
||||
]
|
||||
|
||||
if OUTPUT_DIR.joinpath(".git").is_dir():
|
||||
shutil.rmtree(OUTPUT_DIR.joinpath(".git"))
|
||||
|
||||
for file in OUTPUT_DIR.glob("*.*"):
|
||||
if file.stem not in valid_files:
|
||||
file.unlink()
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user