Commit 64e83dd6 authored by Nijsse, Bart's avatar Nijsse, Bart
Browse files

provenance tarring path fixed

parent aefc5bd3
......@@ -61,17 +61,8 @@ grep "[0-9]\+_irods:" $yaml | awk '{print $2}' | sort | uniq | awk '{print "java
# Start a conda environment when needed
conda_env=`grep conda $yaml | awk -F": " '{print $2}'`
echo "CONDA ENV = $conda_env"
if ! [[ -z "$conda_env" ]]; then
echo "Starting conda environment in $conda_env"
source /root/miniconda/bin/activate && conda activate $conda_env
# Test to see if rdflib is available
python3 -c "import rdflib"
exit_status=$?
if [ $exit_status -ne 0 ]; then
echo "RDFLib not available $exit_status"
exit
fi
fi
# Run workflow with or without provenance
......@@ -101,7 +92,7 @@ if [ $exit_status -eq 0 ]; then
find $destination_path/PROVENANCE -type f | grep "ttl$" | xargs cat | rapper -i turtle -o turtle - http://baseuri > $destination_path/provenance.ttl
# Compress provenance folder
tar -czf $destination_path/PROVENANCE.tar.gz $destination_path/PROVENANCE
tar -czf $destination_path/PROVENANCE.tar.gz -C $destination_path PROVENANCE
# Remove docker folder
rm -rf $destination_path/PROVENANCE
......
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