diff --git a/nextflow.config b/nextflow.config index 151f85b..ee408e1 100644 --- a/nextflow.config +++ b/nextflow.config @@ -190,8 +190,15 @@ env { // Load Nextflow config for nf_aggregate workflow includeConfig 'workflows/nf_aggregate/nextflow.config' -// Capture exit codes from upstream processes when piping -process.shell = ['/bin/bash', '-euo', 'pipefail'] +// Set bash options +process.shell = [ + "bash", + "-C", // No clobber - prevent output redirection from overwriting files. + "-e", // Exit if a tool returns a non-zero status/exit code + "-u", // Treat unset variables and parameters as an error + "-o", // Returns the status of the last command to exit.. + "pipefail" // ..with a non-zero status or zero if all successfully execute +] // Disable process selector warnings by default. Use debug profile to enable warnings. nextflow.enable.configProcessNamesValidation = false