From 3a301702a8ccb3feab4c016612c4e75296e1b06f Mon Sep 17 00:00:00 2001 From: Christian Brandt <35726766+replikation@users.noreply.github.com> Date: Thu, 10 Sep 2020 17:52:21 +0200 Subject: [PATCH] Update setup_container.nf --- modules/setup_container.nf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/setup_container.nf b/modules/setup_container.nf index beb2170..ba24b0c 100644 --- a/modules/setup_container.nf +++ b/modules/setup_container.nf @@ -16,8 +16,10 @@ process setup_container { else if (workflow.profile.contains('singularity')) """ if [[ ${params.cachedir} = /* ]] ; then + mkdir -p ${params.cachedir} download_singularity.sh ${config_file} ${params.cachedir} else + mkdir -p ${workflow.launchDir}/${params.cachedir} download_singularity.sh ${config_file} ${workflow.launchDir}/${params.cachedir} fi