]> arthur.barton.de Git - ConfigScripts.git/commitdiff
Make sure that "type manpath" emits no error messages
authorAlexander Barton <alex@barton.de>
Sun, 27 Feb 2011 17:58:04 +0000 (18:58 +0100)
committerAlexander Barton <alex@barton.de>
Sun, 27 Feb 2011 17:58:04 +0000 (18:58 +0100)
sys/profile

index f1ffada04e1ef518a4708ad24655342ffd09cdbb..0ce21cf32cea5650bf7ad6a6411591b8a04ddd12 100644 (file)
@@ -50,7 +50,7 @@ done
 [ -d ~/sbin ] && PATH=~/sbin:"${PATH}"
 
 # Setup MANPATH, if manpath(1) isn't available
-if [ ! "$(type manpath)" ]; then
+if [ ! "$(type manpath 2>/dev/null)" ]; then
        [ -z "$MANPATH" ] \
                && MANPATH="/usr/local/share/man:/usr/share/man:/usr/man"
        path=""