aboutsummaryrefslogtreecommitdiff
path: root/trunk/src/simpletrack
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/src/simpletrack')
-rwxr-xr-xtrunk/src/simpletrack8
1 files changed, 7 insertions, 1 deletions
diff --git a/trunk/src/simpletrack b/trunk/src/simpletrack
index 781e3e9..c643a89 100755
--- a/trunk/src/simpletrack
+++ b/trunk/src/simpletrack
@@ -51,10 +51,16 @@ fi
for tracker in $PRIORITY; do
path="`which $tracker 2> /dev/null`"
- if [ "$?" == "0" ]; then
+ found="$?"
+ if [ "$found" == "0" ]; then
echo $BASENAME: using $tracker...
$tracker $path $*
break
fi
done
+if [ "$found" != "0" ]; then
+ echo "Can't find any suitable tracker among $PRIORITY"
+ echo "Does slacktrack package is installed in your system?"
+ exit 1
+fi