Commit fef1b927 authored by Sander Bollen's avatar Sander Bollen
Browse files

emulate truncate with head -c 0

parent 2a5d61bb
Pipeline #2579 canceled with stages
in 1 minute and 39 seconds
...@@ -26,13 +26,13 @@ odir=${5} ...@@ -26,13 +26,13 @@ odir=${5}
fastqc --nogroup -o ${odir} ${input_r1} ${input_r2} fastqc --nogroup -o ${odir} ${input_r1} ${input_r2}
if [[ -f ${output_r1} ]]; then if [[ -f ${output_r1} ]]; then
unzip -l ${output_r1} || truncate -s0 ${output_r1} unzip -l ${output_r1} || head -c 0 ${output_r1} > ${output_r1}
else else
touch ${output_r1} touch ${output_r1}
fi fi
if [[ -f ${output_r2} ]]; then if [[ -f ${output_r2} ]]; then
unzip -l ${output_r2} || truncate -s0 ${output_r2} unzip -l ${output_r2} || head -c 0 ${output_r2} > ${output_r2}
else else
touch ${output_r2} touch ${output_r2}
fi fi
Supports Markdown
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