From 342a5da97a9eb28082e5d5503a5ca8347c4823fe Mon Sep 17 00:00:00 2001 From: "Kay Marquardt (Gnadelwartz)" Date: Sun, 31 Jan 2021 12:40:13 +0100 Subject: [PATCH] fix _exec_if_function --- bashbot.sh | 6 +++--- bin/any_command.sh | 2 +- doc/6_reference.md | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bashbot.sh b/bashbot.sh index 3c14d13..e56ed1e 100755 --- a/bashbot.sh +++ b/bashbot.sh @@ -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 & diff --git a/bin/any_command.sh b/bin/any_command.sh index 6ba68da..e9aa43c 100755 --- a/bin/any_command.sh +++ b/bin/any_command.sh @@ -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 #=============================================================================== #### diff --git a/doc/6_reference.md b/doc/6_reference.md index bd35ad5..52edbf0 100644 --- a/doc/6_reference.md +++ b/doc/6_reference.md @@ -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