Skip to content

Commit 2eb9fdc

Browse files
committed
don't add spaces in final name
1 parent 1f1c6f3 commit 2eb9fdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.nf

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ workflow {
9696
def getGlobalPrefix(workflow,params) {
9797
def date_stamp = new java.util.Date().format( 'yyyyMMdd')
9898
if (params.prefix) {
99-
return "${params.prefix}_${date_stamp}_${workflow.manifest.version}_${workflow.runName}"
99+
return "${params.prefix}_${date_stamp}_${workflow.manifest.version}_${workflow.runName}".replaceAll("\\s+", "_")
100100
}
101101
return null
102102
}

0 commit comments

Comments
 (0)