Skip to content

Commit

Permalink
Merge pull request #64 from loosolab/JannikHamp-patch-3
Browse files Browse the repository at this point in the history
fixed .bed.bed unconsitent output name
  • Loading branch information
renewiegandt authored Jan 13, 2019
2 parents 499206d + 34a2830 commit c93ecaf
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 c93ecaf

Please sign in to comment.