We currently check only for '-f' but we need to have read permissions as well.
And help files don't need the execution bit set.
[pb: Simplified test.]
Signed-off-by: Bert Wesarg <bert.wesarg@googlemail.com>
Signed-off-by: Petr Baudis <pasky@suse.cz>
install -d -m 755 "$(hooksdir)"
install $(hooks_out) "$(hooksdir)"
install -d -m 755 "$(sharedir)"
- install $(help_out) "$(sharedir)"
+ install -m 644 $(help_out) "$(sharedir)"
clean::
rm -f tg $(commands_out) $(hooks_out) $(help_out)
echo "TopGit v0.1 - A different patch queue manager"
echo "Usage: tg ($cmds|help) ..."
- elif [ -f "@sharedir@/tg-$1.txt" ] ; then
+ elif [ -r "@sharedir@/tg-$1.txt" ] ; then
cat "@sharedir@/tg-$1.txt"
else
echo "`basename $0`: no help for $1" 1>&2