Skip to content

Commit 3684f21

Browse files
author
Sabrina Krakau
committed
Modified compute_CLmotif-scores script.
1 parent 44c97dd commit 3684f21

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

util/compute_CLmotif_scores.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ fi
3333
bedtools="bedtools"
3434
if [ "$BEDTOOLS"x != "x" ]; then
3535
bedtools="$BEDTOOLS"
36-
if [ ! -e "$bedtools" ]; then
36+
if ! "$bedtools" --version >/dev/null 2>&1; then
3737
echo "Specified BEDTOOLS='$bedtools' not found."
3838
exit 1
3939
fi
4040
else
41-
if ! type "$bedtools" >/dev/null 2>&1; then
41+
if ! "$bedtools" --version >/dev/null 2>&1; then
4242
echo "Cannot find bedtools. Specify bedtools in BEDTOOLS environment variable"
4343
exit 1
4444
fi

0 commit comments

Comments
 (0)