From 0c62e90006db76acce896afe2fcc17879f970cbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kr=C3=BCger?= Date: Tue, 25 Nov 2025 17:01:05 +0100 Subject: [PATCH] fix: correct bash string substitution for cache directory path MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix the bash parameter expansion to properly replace all forward slashes with double hyphens when converting HuggingFace repo IDs to cache paths. Changed from: ${repo_id//\/--} (incorrect syntax) Changed to: ${repo_id//\//--} (correct syntax) This fixes the 'Cache directory not found' error when using --cleanup flag. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- artifact_huggingface_download.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artifact_huggingface_download.sh b/artifact_huggingface_download.sh index 4e2e86f..88b6e5b 100755 --- a/artifact_huggingface_download.sh +++ b/artifact_huggingface_download.sh @@ -704,7 +704,7 @@ cleanup_unused_cache_files() { local comfyui_dir="$3" # Find the latest snapshot directory for this repo - local repo_cache_dir="${cache_dir}/models--${repo_id//\/--}" + local repo_cache_dir="${cache_dir}/models--${repo_id//\//--}" if [[ ! -d "$repo_cache_dir" ]]; then print_warning "Cache directory not found for $repo_id" return 1