Skip to content
Snippets Groups Projects
Commit c517ff78 authored by Jonathan Gesell's avatar Jonathan Gesell
Browse files

Added check for tar directory existance, and untarring of only that directory

parent 696f2ff1
Branches
Tags
2 merge requests!59Develop,!58Develop
Pipeline #4876 failed with stages
in 34 seconds
......@@ -30,8 +30,9 @@ if [ "${folder}" != "${folder1}" ]; then
fi
name=$(echo ${tar} | rev | cut -f1 -d '.' | rev)
bclPath=$(tar -tf ${tar} | grep RTAComplete.txt | rev | cut -f2- | rev)
if [ "${name}" == "gz" ]; then
tar -xvf ${tar} -I pigz
else tar -xvf ${tar}
fi
\ No newline at end of file
tar -xvf ${tar} ${bclPath} -I pigz
else tar -xvf ${tar} ${bclPath}
fi
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