Skip to content

First command may fail, the second command should run #2536

Answered by manuelesimi
manuelesimi asked this question in Q&A
Discussion options

You must be logged in to vote

@NickSwainston

This should do it:

process foo {
  '''
  your_command_that_may_fail || true
  
  second_command
  '''
} 

Replies: 1 comment 1 reply

Comment options

manuelesimi
Jan 5, 2022
Collaborator Author

You must be logged in to vote
1 reply
@NickSwainston
Comment options

Answer selected by manuelesimi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2535 on January 05, 2022 04:19.