Skip to content

Commit

Permalink
fixed .bed.bed unconsitent output name
Browse files Browse the repository at this point in the history
  • Loading branch information
JannikHamp authored Jan 12, 2019
1 parent 499206d commit 34a2830
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/1.2_filter_motifs/compareBed.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 34a2830

Please sign in to comment.