fix _exec_if_function

This commit is contained in:
Kay Marquardt (Gnadelwartz) 2021-01-31 12:40:13 +01:00
parent 8034a5f055
commit 342a5da97a
3 changed files with 5 additions and 5 deletions

View File

@ -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 &

View File

@ -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
#===============================================================================
####

View File

@ -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