Check if whatis knows about gc-utils
commit2e99b4b8aa305c3ca8384d479dc734d9aaefeff3
authorDavid Soria Parra <dsp@php.net>
Mon, 26 May 2008 13:58:33 +0000 (26 15:58 +0200)
committerDavid Soria Parra <dsp@php.net>
Mon, 26 May 2008 13:58:38 +0000 (26 15:58 +0200)
tree577d77b84701f322675cfb42a42309b049cfb97d
parent4a8262f72b5532dcd6e2844142fbe4579c2a7c99
Check if whatis knows about gc-utils

If whatis(1) doesnn't know anything about gc-utils, gc-commit, etc
it echos a "nothing appropriate" string with a not useful return
status. Therefore we have to check for that string before actually
outputting the command and implement a fallback to just
echo the command name if nothing was found by whatis.

Signed-off-by: David Soria Parra <dsp@php.net>
src/gc-utils.sh