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 ?: '' 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