From 38f8a04af62eec27649d10ab0f47ddf298208e32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kr=C3=BCger?= Date: Sat, 22 Nov 2025 16:19:05 +0100 Subject: [PATCH] fix: convert all f-strings to .format() to avoid heredoc escaping issues --- artifact_comfyui_download.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/artifact_comfyui_download.sh b/artifact_comfyui_download.sh index bc8cc9b..bf22e4b 100755 --- a/artifact_comfyui_download.sh +++ b/artifact_comfyui_download.sh @@ -204,8 +204,8 @@ try: if category == 'settings': settings = config.get('settings', {}) - print(f"CACHE_DIR={settings.get('cache_dir', '/workspace/huggingface_cache')}") - print(f"PARALLEL_DOWNLOADS={settings.get('parallel_downloads', 1)}") + print("CACHE_DIR={0}".format(settings.get('cache_dir', '/workspace/huggingface_cache'))) + print("PARALLEL_DOWNLOADS={0}".format(settings.get('parallel_downloads', 1))) elif category == 'categories': for cat_name in config.get('model_categories', {}).keys(): print(cat_name) @@ -218,11 +218,11 @@ try: essential = model.get('essential', False) model_type = model.get('type', 'checkpoints') filename = model.get('filename', '') - print(f"{repo_id}|{description}|{size_gb}|{essential}|{model_type}|{filename}") + print('{0}|{1}|{2}|{3}|{4}|{5}'.format(repo_id, description, size_gb, essential, model_type, filename)) else: sys.exit(1) except Exception as e: - print(f"ERROR: {e}", file=sys.stderr) + print("ERROR: {0}".format(e), file=sys.stderr) sys.exit(1) EOPYAML } @@ -388,7 +388,7 @@ try: ) print("SUCCESS") except Exception as e: - print(f"ERROR: {e}", file=sys.stderr) + print("ERROR: {0}".format(e), file=sys.stderr) sys.exit(1) EOPYDOWNLOAD