From 166dbb8803f19877213fc43713320cc3145bc6fd Mon Sep 17 00:00:00 2001 From: Sam Chau Date: Thu, 16 Jan 2025 10:23:57 +1030 Subject: [PATCH] fix(tierCreator): Improve output message to indicate whether a file is being created or overwritten --- scripts/tierCreator.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/tierCreator.py b/scripts/tierCreator.py index 49a4d8c..8f5d268 100644 --- a/scripts/tierCreator.py +++ b/scripts/tierCreator.py @@ -91,8 +91,9 @@ def create_tier_format(tier, # Write custom format file output_path = output_dir / f"{resolution} {type_name} Tier {tier}.yml" + existing = "Overwriting" if output_path.exists() else "Creating" print( - f"{'Would create' if dry_run else 'Creating'} custom format: {output_path} (includes {len(tier_groups)} groups)" + f"{'Would ' + existing.lower() if dry_run else existing} custom format: {output_path} (includes {len(tier_groups)} groups)" ) if not dry_run: