We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44c97dd commit 3684f21Copy full SHA for 3684f21
util/compute_CLmotif_scores.sh
@@ -33,12 +33,12 @@ fi
33
bedtools="bedtools"
34
if [ "$BEDTOOLS"x != "x" ]; then
35
bedtools="$BEDTOOLS"
36
- if [ ! -e "$bedtools" ]; then
+ if ! "$bedtools" --version >/dev/null 2>&1; then
37
echo "Specified BEDTOOLS='$bedtools' not found."
38
exit 1
39
fi
40
else
41
- if ! type "$bedtools" >/dev/null 2>&1; then
42
echo "Cannot find bedtools. Specify bedtools in BEDTOOLS environment variable"
43
44
0 commit comments