Skip to content

Commit

Permalink
Add "script:" before bash script section in snippet
Browse files Browse the repository at this point in the history
While it appears to work fine, the vs code extension for nextflow indicates this is not correct.


Signed-off-by: PeterKnealeCMRI <[email protected]>
  • Loading branch information
PeterKnealeCMRI authored Dec 17, 2024
1 parent 8b54181 commit d95ebc7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/snippets/your-first-script.nf
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ process splitLetters {
output:
path 'chunk_*'

script:
"""
printf '${params.str}' | split -b 6 - chunk_
"""
Expand All @@ -16,6 +17,7 @@ process convertToUpper {
output:
stdout

script:
"""
cat $x | tr '[a-z]' '[A-Z]'
"""
Expand Down

0 comments on commit d95ebc7

Please sign in to comment.