aboutsummaryrefslogtreecommitdiff
path: root/trunk/src
diff options
context:
space:
mode:
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2008-02-06 17:46:15 +0000
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2008-02-06 17:46:15 +0000
commit8d6fbc79a4246f93acdc58a71b25ce10b85f1d0d (patch)
tree17d9eddf7430047e8426c7c2a629d846d683b394 /trunk/src
parentce8eea07503c1e0ee2c4cc54094c6ff96682e7ae (diff)
downloadsimplepkg-8d6fbc79a4246f93acdc58a71b25ce10b85f1d0d.tar.gz
simplepkg-8d6fbc79a4246f93acdc58a71b25ce10b85f1d0d.tar.bz2
small fixes
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@486 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'trunk/src')
-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