Skip to content

Commit

Permalink
fix: function performs even if meta directory already exists
Browse files Browse the repository at this point in the history
  • Loading branch information
SteBaum committed Oct 30, 2023
1 parent 494e8b9 commit a22f664
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/playbooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ def custom_key(node: str):
services = dag_services_order

meta_dir = Path(output_dir, "meta")
meta_dir.mkdir()
if not meta_dir.is_dir():
meta_dir.mkdir()
else:
print("Folder meta already exists, will add extra services/collections if any")

def write_copyright_licence_headers(fd):
fd.write("# Copyright 2022 TOSIT.IO\n")
Expand Down

0 comments on commit a22f664

Please sign in to comment.