make help browseable if w3mmor lynx exists

This commit is contained in:
Kay Marquardt (Gnadelwartz) 2020-06-19 12:51:36 +02:00
parent fa5be1eafb
commit cf536c9ca3

View File

@ -11,7 +11,7 @@
# This file is public domain in the USA and all free countries. # This file is public domain in the USA and all free countries.
# Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying) # Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying)
# #
#### $$VERSION$$ v0.98-dev-49-g5dcc7ef #### $$VERSION$$ v0.98-dev-50-gfa5be1e
# #
# Exit Codes: # Exit Codes:
# - 0 sucess (hopefully) # - 0 sucess (hopefully)
@ -1092,7 +1092,13 @@ if [ "${SOURCE}" != "yes" ]; then
job_control "$1" job_control "$1"
;; ;;
"help") "help")
less "README.txt" HELP="README"
if [ -n "${CLEAR}" ];then
_exists w3m && w3m "$HELP.html" && exit
_exists lynx && lynx "$HELP.html" && exit
_exists less && less "$HELP.txt" && exit
fi
cat "$HELP.txt"
exit exit
;; ;;
*) *)