diff --git a/rna-seq.nf b/rna-seq.nf index 0adcc63f7b7a1a540b2be56a2e94b86376e617bf..673b863d017f888ca010cc39810767ac9379689a 100644 --- a/rna-seq.nf +++ b/rna-seq.nf @@ -634,7 +634,7 @@ process fastqc { # run fastqc echo -e "LOG: running fastq on raw fastqs" >> ${repRID}.fastqc.log fastqc *.fastq.gz -o . &> fastqc.out || true - fastqcErrorOut=\$(cat fastqc.out | grep -c 'Failed to process file') || fastqcErrorOut=0 + fastqcErrorOut=$(cat fastqc.out | grep -c 'Failed to process') || fastqcErrorOut=0 fastqFileError=false fastqFileError_details="" if [ "\${fastqcErrorOut}" -ne "0" ]