Fix unbound variable crash

This commit is contained in:
jasmezz 2022-05-02 16:41:59 +02:00
parent 0fc352188b
commit 6a9f2077cf

View file

@ -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