Skip to content

Commit 9117b6f

Browse files
Copilotagillen
andcommitted
Fix unquoted parameter substitutions in shell tests
Co-authored-by: agillen <4809242+agillen@users.noreply.github.com>
1 parent 9982e43 commit 9117b6f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rules/cutadapt_star.snake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ rule cutadapt_paired:
117117
cat {input} > {output.R1}
118118
cat $(echo {input} | sed 's/_R1/_R2/g') > {output.R2}
119119
else
120-
if [ -z {params.bc_cut} ] ; then
120+
if [ -z "{params.bc_cut}" ] ; then
121121
echo "no additional trimming"
122122
cutadapt -j 24 \
123123
{params.cut_params} \
@@ -129,7 +129,7 @@ rule cutadapt_paired:
129129
echo "removing internal seq..."
130130
cutadapt --discard-untrimmed --info-file {params.info} -o /dev/null -p {params.temp2} -g {params.bc_cut} =(cat {input}) =(cat $(echo {input} | sed 's/_R1/_R2/g'))
131131
echo "stitching R1 FASTQ back together..."
132-
if [ -z {params.bc_length1} ];
132+
if [ -z "{params.bc_length1}" ];
133133
then
134134
python3 inst/scripts/cut_paste_fastq.py -i {params.info} -o {params.temp}
135135
else

0 commit comments

Comments
 (0)