From 34a2830159788538d862449fb68bf41c17f1081b Mon Sep 17 00:00:00 2001 From: JannikHamp Date: Sat, 12 Jan 2019 19:30:46 +0100 Subject: [PATCH] fixed .bed.bed unconsitent output name --- bin/1.2_filter_motifs/compareBed.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/1.2_filter_motifs/compareBed.sh b/bin/1.2_filter_motifs/compareBed.sh index 7cf0017..2c4c9ba 100644 --- a/bin/1.2_filter_motifs/compareBed.sh +++ b/bin/1.2_filter_motifs/compareBed.sh @@ -176,7 +176,8 @@ then echo "directory $workdir does not exist. Please check parameter -w / --workdir" exit 1 fi -if [[ ${output: -4: -1} != '.bed' ]] +# check if output path ends with .bed. If not, the filename is extended by ".bed" +if [[ ${output: -4} != '.bed' ]] then output=`echo $output | sed "s|$|.bed|g"` fi