From 6a9f2077cf6f224c547e4c7ff0f703cedc69bda2 Mon Sep 17 00:00:00 2001 From: jasmezz Date: Mon, 2 May 2022 16:41:59 +0200 Subject: [PATCH] Fix unbound variable crash --- modules/antismash/antismashlitedownloaddatabases/main.nf | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/modules/antismash/antismashlitedownloaddatabases/main.nf b/modules/antismash/antismashlitedownloaddatabases/main.nf index da8a750d..fbb92490 100644 --- a/modules/antismash/antismashlitedownloaddatabases/main.nf +++ b/modules/antismash/antismashlitedownloaddatabases/main.nf @@ -37,16 +37,15 @@ process ANTISMASH_ANTISMASHLITEDOWNLOADDATABASES { def args = task.ext.args ?: '' conda = params.enable_conda """ - download-antismash-databases \\ - --database-dir antismash_db \\ - $args + #download-antismash-databases \\ + # --database-dir antismash_db \\ + # $args if [[ $conda = false ]]; \ then \ cp -r /usr/local/lib/python3.8/site-packages/antismash antismash_dir; \ else \ - antismash_path=\$(python -c 'import antismash;print(antismash.__file__.split("__")[0])') \ - cp -r \$antismash_path antismash_dir; \ + cp -r \$(python -c 'import antismash;print(antismash.__file__.split("/__")[0])') antismash_dir; \ fi cat <<-END_VERSIONS > versions.yml