Skip to content

Commit

Permalink
bugfix: don't overwrite the cached container
Browse files Browse the repository at this point in the history
  • Loading branch information
muffato committed Sep 8, 2024
1 parent 6293dd0 commit 593ffef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nf_core/pipelines/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -1311,7 +1311,7 @@ def singularity_copy_library_image(
) -> None:
"""Copy Singularity image from NXF_SINGULARITY_LIBRARYDIR to target folder, and possibly NXF_SINGULARITY_CACHEDIR."""
self.singularity_copy_image(container, library_path, out_path)
if cache_path:
if cache_path and not os.path.exists(cache_path):
self.singularity_copy_image(container, library_path, cache_path)

def singularity_copy_image(self, container: str, from_path: str, to_path: str) -> None:
Expand Down

0 comments on commit 593ffef

Please sign in to comment.