From 7a3375b412e28f5f22ec187a77285afe96d39672 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98ens-ftricomi=E2=80=99?= Date: Fri, 12 Apr 2024 13:34:35 +0100 Subject: [PATCH] error clean cache --- pipelines/nextflow/workflows/main.nf | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pipelines/nextflow/workflows/main.nf b/pipelines/nextflow/workflows/main.nf index 89db098..cd089c1 100644 --- a/pipelines/nextflow/workflows/main.nf +++ b/pipelines/nextflow/workflows/main.nf @@ -140,11 +140,10 @@ workflow STATISTICS{ RUN_ENSEMBL_STATS(db, db_meta) } } - afterScript: - """ + if (params.cleanCache) { // Clean cache directories exec "rm -rf ${params.cacheDir}/*" } - """ + } \ No newline at end of file