diff --git a/artifact_huggingface_download.sh b/artifact_huggingface_download.sh index 1a7f689..4e2e86f 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