mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2025-01-18 02:46:13 -05: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 ?: ''
|
def args = task.ext.args ?: ''
|
||||||
conda = params.enable_conda
|
conda = params.enable_conda
|
||||||
"""
|
"""
|
||||||
download-antismash-databases \\
|
#download-antismash-databases \\
|
||||||
--database-dir antismash_db \\
|
# --database-dir antismash_db \\
|
||||||
$args
|
# $args
|
||||||
|
|
||||||
if [[ $conda = false ]]; \
|
if [[ $conda = false ]]; \
|
||||||
then \
|
then \
|
||||||
cp -r /usr/local/lib/python3.8/site-packages/antismash antismash_dir; \
|
cp -r /usr/local/lib/python3.8/site-packages/antismash antismash_dir; \
|
||||||
else \
|
else \
|
||||||
antismash_path=\$(python -c 'import antismash;print(antismash.__file__.split("__")[0])') \
|
cp -r \$(python -c 'import antismash;print(antismash.__file__.split("/__")[0])') antismash_dir; \
|
||||||
cp -r \$antismash_path antismash_dir; \
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cat <<-END_VERSIONS > versions.yml
|
cat <<-END_VERSIONS > versions.yml
|
||||||
|
|
Loading…
Add table
Reference in a new issue