mirror of
https://codeberg.org/kiss-community/kiss
synced 2024-11-04 22:15:36 -07:00
15 lines
355 B
Bash
Executable File
15 lines
355 B
Bash
Executable File
#!/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
|
|
[ -f "${1:-:}" ] && file=./${1:-.}
|
|
|
|
"${PAGER:-less}" "${file:-404.txt}"
|
|
|