mirror of
https://github.com/octoleo/telegram-bot-bash.git
synced 2024-11-24 16:27:33 +00:00
doc: move bashbot.ascii
This commit is contained in:
parent
8253a53994
commit
88a24cb2a3
@ -30,7 +30,7 @@ BOTCOMMANDS="-h help init start stop status suspendback resumeback killb
|
|||||||
# 8 - curl/wget missing
|
# 8 - curl/wget missing
|
||||||
# 10 - not bash!
|
# 10 - not bash!
|
||||||
#
|
#
|
||||||
#### $$VERSION$$ v1.25-dev-41-g37e4539
|
#### $$VERSION$$ v1.25-dev-46-g8253a53
|
||||||
##################################################################
|
##################################################################
|
||||||
|
|
||||||
# emmbeded system may claim bash but it is not
|
# emmbeded system may claim bash but it is not
|
||||||
@ -169,7 +169,7 @@ RUNUSER="${USER}" # USER is overwritten by bashbot array :-(, save original
|
|||||||
case "$1" in
|
case "$1" in
|
||||||
"") [ -z "${SOURCE}" ] && printf "${ORANGE}Available commands: ${GREY}${BOTCOMMANDS}${NN}" && exit
|
"") [ -z "${SOURCE}" ] && printf "${ORANGE}Available commands: ${GREY}${BOTCOMMANDS}${NN}" && exit
|
||||||
;;
|
;;
|
||||||
"-h"*) LOGO="${BASHBOT_HOME:-.}/bin/bashbot.ascii"
|
"-h"*) LOGO="${BASHBOT_HOME:-.}/doc/bashbot.ascii"
|
||||||
[ -r "${LOGO}" ] && cat "${LOGO}"
|
[ -r "${LOGO}" ] && cat "${LOGO}"
|
||||||
sed -nE -e '/(NOT EDIT)|(shellcheck)/d' -e '3,/###/p' <"$0"
|
sed -nE -e '/(NOT EDIT)|(shellcheck)/d' -e '3,/###/p' <"$0"
|
||||||
exit;;
|
exit;;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#
|
#
|
||||||
#### $$VERSION$$ v1.25-dev-40-g4a9d1f0
|
#### $$VERSION$$ v1.25-dev-46-g8253a53
|
||||||
# shellcheck disable=SC2016
|
# shellcheck disable=SC2016
|
||||||
#
|
#
|
||||||
# Easy Versioning in git:
|
# Easy Versioning in git:
|
||||||
@ -56,7 +56,7 @@ FILES="$(find ./*)"
|
|||||||
if [[ "${FILES}" == *"README.md"* ]]; then
|
if [[ "${FILES}" == *"README.md"* ]]; then
|
||||||
FILES+=" README.html README.txt"
|
FILES+=" README.html README.txt"
|
||||||
type -f pandoc >/dev/null && pandoc -s -f commonmark -M "title=Bashbot README" README.md >README.html
|
type -f pandoc >/dev/null && pandoc -s -f commonmark -M "title=Bashbot README" README.md >README.html
|
||||||
cat "bin/bashbot.ascii" >"README.txt"
|
cat "doc/bashbot.ascii" >"README.txt"
|
||||||
if [ -r "README.html" ] && type -f html2text >/dev/null; then
|
if [ -r "README.html" ] && type -f html2text >/dev/null; then
|
||||||
# convert html links to text [link]
|
# convert html links to text [link]
|
||||||
sed -E 's/<a href="([^>]+)">([^<#]+)<\/a>/\2 [\1]/' <README.html |\
|
sed -E 's/<a href="([^>]+)">([^<#]+)<\/a>/\2 [\1]/' <README.html |\
|
||||||
|
Loading…
Reference in New Issue
Block a user