Commit 773119a0 authored by Hermann Zellner's avatar Hermann Zellner

Merge branch 'FileExistsCheck-hz' into 'master'

Add check for existence of file in run_unifire_docker.sh

See merge request uniprot-public/unifire!10
parents b60ce6c2 ddd14b79
......@@ -23,7 +23,7 @@ infile=""
outdir=""
workdir=""
cleanworkdir=0
docker_version="2020.4"
docker_version="2020.4.1"
predictionfiles="predictions_unirule.out predictions_arba.out predictions_unirule-pirsr.out"
function usage() {
......
......@@ -50,7 +50,10 @@ ownership=`stat -c "%u:%g" ${VOLUME}/proteins.fasta`
for outfile in proteins_lineage.fasta proteins_lineage-ipr.xml proteins_lineage-ipr-urml.xml predictions_unirule.out \
predictions_arba.out predictions_unirule-pirsr.out seq aln
do
chown -R ${ownership} ${VOLUME}/${outfile}
if [[ -e ${VOLUME}/${outfile} ]]
then
chown -R ${ownership} ${VOLUME}/${outfile}
fi
done
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment