# HG changeset patch # User Pascal Bellard # Date 1216205262 0 # Node ID fe0055196ad18fc7607a0d6c200891409a2e1af7 # Parent 12a173c42f84e12b37d4e1a5aa1ddc187d4c07d9 man: check retawq exists diff -r 12a173c42f84 -r fe0055196ad1 rootfs/etc/profile --- a/rootfs/etc/profile Wed Jul 16 10:44:02 2008 +0000 +++ b/rootfs/etc/profile Wed Jul 16 10:47:42 2008 +0000 @@ -52,7 +52,7 @@ shift fi TOPIC=$1 -if [ -f /usr/share/doc/$TOPIC/$TOPIC.html ]; then +if [ -x /usr/bin/retawq -a -f /usr/share/doc/$TOPIC/$TOPIC.html ]; then retawq --dump=file:///usr/share/doc/$TOPIC/$TOPIC.html | less -M return fi @@ -65,7 +65,7 @@ esac return fi - if [ -f $i/$TOPIC.html ]; then + if [ -x /usr/bin/retawq -a -f $i/$TOPIC.html ]; then retawq --dump=file://$i/$TOPIC.html | less -M return fi