mirror of
https://github.com/octoleo/telegram-bot-bash.git
synced 2024-11-26 09:16:28 +00:00
make help browseable if w3mmor lynx exists
This commit is contained in:
parent
fa5be1eafb
commit
cf536c9ca3
10
bashbot.sh
10
bashbot.sh
@ -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
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
Loading…
Reference in New Issue
Block a user