diff --git a/modules/nextflow/src/main/groovy/nextflow/extension/PublishOp.groovy b/modules/nextflow/src/main/groovy/nextflow/extension/PublishOp.groovy index 3f10b7c16c..5c0a454858 100644 --- a/modules/nextflow/src/main/groovy/nextflow/extension/PublishOp.groovy +++ b/modules/nextflow/src/main/groovy/nextflow/extension/PublishOp.groovy @@ -76,7 +76,7 @@ class PublishOp { // evaluate dynamic path final path = pathAs != null - ? pathAs.call(value) + ? targetDir.resolve(pathAs.call(value)) : targetDir if( path == null ) return