diff --git a/artifact_comfyui_download.sh b/artifact_comfyui_download.sh index 22623da..18ba9cd 100755 --- a/artifact_comfyui_download.sh +++ b/artifact_comfyui_download.sh @@ -474,7 +474,8 @@ link_model() { fi # Only link if the file is large enough to be a checkpoint (> 500MB) - local file_size=$(stat -c%s "$ckpt_file" 2>/dev/null || echo "0") + # Use -L to follow symlinks (HuggingFace cache uses symlinks to blobs) + local file_size=$(stat -L -c%s "$ckpt_file" 2>/dev/null || echo "0") if [[ $file_size -gt 524288000 ]]; then local ckpt_link="${checkpoint_dir}/${ckpt_name}"