slitaz-base-files rev 45
man: check retawq exists
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jul 16 10:47:42 2008 +0000 (2008-07-16) |
parents | 12a173c42f84 |
children | 2924eaa036c3 |
files | rootfs/etc/profile |
line diff
1.1 --- a/rootfs/etc/profile Wed Jul 16 10:44:02 2008 +0000 1.2 +++ b/rootfs/etc/profile Wed Jul 16 10:47:42 2008 +0000 1.3 @@ -52,7 +52,7 @@ 1.4 shift 1.5 fi 1.6 TOPIC=$1 1.7 -if [ -f /usr/share/doc/$TOPIC/$TOPIC.html ]; then 1.8 +if [ -x /usr/bin/retawq -a -f /usr/share/doc/$TOPIC/$TOPIC.html ]; then 1.9 retawq --dump=file:///usr/share/doc/$TOPIC/$TOPIC.html | less -M 1.10 return 1.11 fi 1.12 @@ -65,7 +65,7 @@ 1.13 esac 1.14 return 1.15 fi 1.16 - if [ -f $i/$TOPIC.html ]; then 1.17 + if [ -x /usr/bin/retawq -a -f $i/$TOPIC.html ]; then 1.18 retawq --dump=file://$i/$TOPIC.html | less -M 1.19 return 1.20 fi