mirror of
https://github.com/octoleo/telegram-bot-bash.git
synced 2024-12-26 20:30:50 +00:00
fix _exec_if_function
This commit is contained in:
parent
8034a5f055
commit
342a5da97a
@ -30,7 +30,7 @@ BOTCOMMANDS="-h help init start stop status suspendback resumeback killb
|
||||
# 8 - curl/wget missing
|
||||
# 10 - not bash!
|
||||
#
|
||||
#### $$VERSION$$ v1.40-dev-4-gc693ab5
|
||||
#### $$VERSION$$ v1.40-dev-17-g8034a5f
|
||||
##################################################################
|
||||
|
||||
# emmbeded system may claim bash but it is not
|
||||
@ -754,7 +754,7 @@ if [ -z "${SOURCE}" ]; then
|
||||
;;
|
||||
# finally starts the read update loop, internal use only
|
||||
"startbot" )
|
||||
_exec_if_exist start_bot "$2"
|
||||
_exec_if_function start_bot "$2"
|
||||
debug_checks "end startbot" "$@"
|
||||
exit
|
||||
;;
|
||||
@ -797,7 +797,7 @@ if [ -z "${SOURCE}" ]; then
|
||||
"start")
|
||||
SESSION="${ME:-_bot}-startbot"
|
||||
BOTPID="$(proclist "${SESSION}")"
|
||||
if _is_function process_updates; then
|
||||
if _is_function process_update; then
|
||||
# shellcheck disable=SC2086
|
||||
[ -n "${BOTPID}" ] && kill ${BOTPID}
|
||||
nohup "${SCRIPT}" "startbot" "$2" "${SESSION}" &>/dev/null &
|
||||
|
@ -21,7 +21,7 @@ USAGE='any_command.sh [-h|--help] [--force|--reference] bot_command args ...'
|
||||
# AUTHOR: KayM (gnadelwartz), kay@rrr.de
|
||||
# CREATED: 30.01.2021 10:24
|
||||
#
|
||||
#### $$VERSION$$ v1.40-dev-16-gf377e17
|
||||
#### $$VERSION$$ v1.40-dev-17-g8034a5f
|
||||
#===============================================================================
|
||||
|
||||
####
|
||||
|
@ -1578,5 +1578,5 @@ The name of your bot is available as bash variable "$ME", there is no need to ca
|
||||
#### [Prev Best Practice](5_practice.md)
|
||||
#### [Next Notes for Developers](7_develop.md)
|
||||
|
||||
#### $$VERSION$$ v1.40-dev-16-gf377e17
|
||||
#### $$VERSION$$ v1.40-dev-17-g8034a5f
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user