mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-22 02:58:17 +00:00
Fix unbound variable crash
This commit is contained in:
parent
0fc352188b
commit
6a9f2077cf
1 changed files with 4 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue