shell
The shell directive defines a custom shell command for process scripts. By default, script blocks are executed with /bin/bash -ue.
process hello {
shell '/bin/bash', '-euo', 'pipefail'
script:
"""
your_command --here
"""
}
It can also be specified in the Nextflow configuration:
process.shell = ['/bin/bash', '-euo', 'pipefail']