diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/gitea_cgit_description_syncer.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/gitea_cgit_description_syncer.py b/scripts/gitea_cgit_description_syncer.py index 0a878e1..b26bd90 100755 --- a/scripts/gitea_cgit_description_syncer.py +++ b/scripts/gitea_cgit_description_syncer.py @@ -52,6 +52,9 @@ description_local = file_content.replace('\n', '') print(f"Description (Local): {description_local}") if description_gitea == description_local: print("Matches, nothing to change.") +elif not description_gitea: + print("Empty - Writing placeholder.") + Path(file_path).write_text('Untitled / Work in Progress.') else: print("Does not match, replacing local file.") Path(file_path).write_text(description_gitea) |