Skip to content

Commit

Permalink
fix version parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasscheid committed Sep 16, 2024
1 parent 1bfbd6c commit 6db8188
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/local/pyopenms_chromatogramextractor.nf
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ process PYOPENMS_CHROMATOGRAMEXTRACTOR {
cat <<-END_VERSIONS > versions.yml
"${task.process}":
pyopenms: \$(echo \$(FileInfo --help 2>&1) | sed 's/^.*Version: //; s/-.*\$//' | sed 's/ -*//; s/ .*\$//')
pyOpenMS: \$(pip show pyopenms | grep Version | cut -d ' ' -f 2)
END_VERSIONS
"""

Expand All @@ -41,7 +41,7 @@ process PYOPENMS_CHROMATOGRAMEXTRACTOR {
cat <<-END_VERSIONS > versions.yml
"${task.process}":
pyopenms: \$(echo \$(FileInfo --help 2>&1) | sed 's/^.*Version: //; s/-.*\$//' | sed 's/ -*//; s/ .*\$//')
pyOpenMS: \$(pip show pyopenms | grep Version | cut -d ' ' -f 2)
END_VERSIONS
"""
}

0 comments on commit 6db8188

Please sign in to comment.