kiss: Make help work for all files

This commit is contained in:
Dylan Araps 2020-06-21 17:32:18 +03:00
parent 757795ebbc
commit 929270cdbf
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

View File

@ -8,6 +8,7 @@ cd "$KISS_ROOT/usr/share/doc/kiss" 2>/dev/null || {
[ -f "${1:-.}/index.txt" ] && file=./${1:-.}/index.txt [ -f "${1:-.}/index.txt" ] && file=./${1:-.}/index.txt
[ -f "${1:-.}.txt" ] && file=./${1:-.}.txt [ -f "${1:-.}.txt" ] && file=./${1:-.}.txt
[ -f "${1:-:}" ] && file=./${1:-.}
"${PAGER:-less}" "${file:-404.txt}" "${PAGER:-less}" "${file:-404.txt}"