Skip to content

Commit a5d272d

Browse files
committed
fix process shell
1 parent 60738aa commit a5d272d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

nextflow.config

+8-8
Original file line numberDiff line numberDiff line change
@@ -338,14 +338,14 @@ env {
338338
}
339339

340340
// Set bash options
341-
process.shell = """\
342-
bash
343-
344-
set -e # Exit if a tool returns a non-zero status/exit code
345-
set -u # Treat unset variables and parameters as an error
346-
set -o pipefail # Returns the status of the last command to exit with a non-zero status or zero if all successfully execute
347-
set -C # No clobber - prevent output redirection from overwriting files.
348-
"""
341+
process.shell = [
342+
"bash",
343+
"-C", // No clobber - prevent output redirection from overwriting files.
344+
"-e", // Exit if a tool returns a non-zero status/exit code
345+
"-u", // Treat unset variables and parameters as an error
346+
"-o",
347+
"pipefail" // Returns the status of the last command to exit with a non-zero status or zero if all successfully execute
348+
]
349349

350350
// Disable process selector warnings by default. Use debug profile to enable warnings.
351351
nextflow.enable.configProcessNamesValidation = false

0 commit comments

Comments
 (0)