forked from kiss-community/kiss
kiss: Make help work for all files
This commit is contained in:
parent
757795ebbc
commit
929270cdbf
@ -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}"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user