diff options
author | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2008-02-06 17:46:15 +0000 |
---|---|---|
committer | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2008-02-06 17:46:15 +0000 |
commit | 8d6fbc79a4246f93acdc58a71b25ce10b85f1d0d (patch) | |
tree | 17d9eddf7430047e8426c7c2a629d846d683b394 /trunk/src | |
parent | ce8eea07503c1e0ee2c4cc54094c6ff96682e7ae (diff) | |
download | simplepkg-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-x | trunk/src/simpletrack | 8 |
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 |