From 46906d93b38ff49bc1073f5ef78a7c4ccb73c523 Mon Sep 17 00:00:00 2001 From: Luca Cozzuto Date: Mon, 5 Aug 2019 13:23:21 +0200 Subject: [PATCH] fixing a mv --- lib/NGSaligner.groovy | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/NGSaligner.groovy b/lib/NGSaligner.groovy index a4c2860..3b973d4 100644 --- a/lib/NGSaligner.groovy +++ b/lib/NGSaligner.groovy @@ -153,8 +153,10 @@ mkdir ${this.output} mv ${this.id}Aligned* ${this.output}/. mv ${this.id}SJ* ${this.output}/. - mv ${this.id}ReadsPerGene* ${this.output}/. - mv ${this.id}Log* ${this.output}/. + mv ${this.id}Log* ${this.output}/. + if test -f "${this.id}ReadsPerGene*"; then + mv ${this.id}ReadsPerGene* ${this.output}/. + fi """ }