Skip to content

Commit

Permalink
Fix process.shell in nextflow.config (nf-core/tools#3416))
Browse files Browse the repository at this point in the history
  • Loading branch information
fbdtemme committed Jan 22, 2025
1 parent f0c9835 commit 6669ebd
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -269,14 +269,13 @@ env {
}

// Set bash options
process.shell = """\
bash
set -e # Exit if a tool returns a non-zero status/exit code
set -u # Treat unset variables and parameters as an error
set -o pipefail # Returns the status of the last command to exit with a non-zero status or zero if all successfully execute
set -C # No clobber - prevent output redirection from overwriting files.
"""
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 pipefail" // Returns the status of the last command to exit 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
Expand Down

0 comments on commit 6669ebd

Please sign in to comment.