Skip to content

Commit

Permalink
Merge pull request #29 from NickEngland/nengland/singularity-fix
Browse files Browse the repository at this point in the history
Fix Crash when using --singularity with Apptainer
  • Loading branch information
mruffalo authored Apr 16, 2024
2 parents 4277d62 + 60ed964 commit bc8b747
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cwltool/singularity.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ def get_version() -> str:
)
if _SINGULARITY_VERSION.startswith("singularity version "):
_SINGULARITY_VERSION = _SINGULARITY_VERSION[20:]
if _SINGULARITY_VERSION.startswith("singularity-ce version "):
_SINGULARITY_VERSION = _SINGULARITY_VERSION[23:]
if _SINGULARITY_VERSION.startswith("apptainer version "):
_SINGULARITY_VERSION = _SINGULARITY_VERSION[18:]
_logger.debug(f"Singularity version: {_SINGULARITY_VERSION}.")
return _SINGULARITY_VERSION


Expand Down

0 comments on commit bc8b747

Please sign in to comment.