Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Commit

Permalink
Fixes #345 and should not cause #317
Browse files Browse the repository at this point in the history
  • Loading branch information
dweemx committed Jul 5, 2021
1 parent 2d176ba commit d6cd814
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/utils/processes/utils.nf
Original file line number Diff line number Diff line change
Expand Up @@ -434,15 +434,14 @@ process SC__PUBLISH {

publishDir \
"${getPublishDir(params.global.outdir,toolName)}", \
mode: "${params.utils.publish?.mode ? params.utils.publish.mode: 'link'}", \
saveAs: { filename -> "${outputFileName}" }
mode: "${params.utils.publish?.mode ? params.utils.publish.mode: 'link'}"

label 'compute_resources__minimal'

input:
tuple \
val(tag), \
path(f, stageAs: 'input_file'), \
path(f), \
val(stashedParams)
val(fileOutputSuffix)
val(toolName)
Expand All @@ -464,9 +463,10 @@ process SC__PUBLISH {
stashedParams
)
"""
if [ ! -f ${outputFileName} ]; then
ln -s input_file "${outputFileName}"
fi
# In case f and outputFileName are colliding, rename to f to dummy tmp filename
mv ${f} tmp
# FIXME: should avoid copying data (currently it's the only option to work without causing #317 and #345)
cp -rL tmp "${outputFileName}"
"""
}

Expand Down

0 comments on commit d6cd814

Please sign in to comment.