improved cleanup: delete duplicates from copied projects

This commit is contained in:
Felix Lohmeier 2017-03-01 23:40:16 +01:00
parent 676f422d1f
commit 631557e74a
1 changed files with 12 additions and 8 deletions

View File

@ -1,5 +1,5 @@
#!/bin/bash
# openrefine-batch.sh, Felix Lohmeier, v0.6.2, 01.03.2017
# openrefine-batch.sh, Felix Lohmeier, v0.6.3, 01.03.2017
# https://github.com/felixlohmeier/openrefine-batch
# user input
@ -230,6 +230,10 @@ echo "cleanup..."
docker stop -t=5000 ${uuid}
docker rm ${uuid}
rm -r -f ${outputdir}/workspace*.json
# delete duplicates from copied projects
if [ -n "$crossprojects" ]; then
for i in "${crossprojects[@]}" ; do rm -r -f ${outputdir}/${i} done
fi
echo ""
# time