2020-06-12 15:00:58 -06:00
|
|
|
#!/bin/sh
|
|
|
|
# Read KISS documentation
|
|
|
|
|
|
|
|
cd "$KISS_ROOT/usr/share/doc/kiss" 2>/dev/null || {
|
|
|
|
printf 'Documentation is missing from /usr/share/doc/kiss\n'
|
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
|
|
|
|
[ -f "${1:-.}/index.txt" ] && file=./${1:-.}/index.txt
|
|
|
|
[ -f "${1:-.}.txt" ] && file=./${1:-.}.txt
|
2020-06-21 08:32:18 -06:00
|
|
|
[ -f "${1:-:}" ] && file=./${1:-.}
|
2020-06-12 15:00:58 -06:00
|
|
|
|
2020-06-12 15:25:03 -06:00
|
|
|
"${PAGER:-less}" "${file:-404.txt}"
|
2020-06-12 15:00:58 -06:00
|
|
|
|