mirror of
https://github.com/octoleo/telegram-bot-bash.git
synced 2024-12-27 04:32:49 +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
|
# 8 - curl/wget missing
|
||||||
# 10 - not bash!
|
# 10 - not bash!
|
||||||
#
|
#
|
||||||
#### $$VERSION$$ v1.40-dev-4-gc693ab5
|
#### $$VERSION$$ v1.40-dev-17-g8034a5f
|
||||||
##################################################################
|
##################################################################
|
||||||
|
|
||||||
# emmbeded system may claim bash but it is not
|
# 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
|
# finally starts the read update loop, internal use only
|
||||||
"startbot" )
|
"startbot" )
|
||||||
_exec_if_exist start_bot "$2"
|
_exec_if_function start_bot "$2"
|
||||||
debug_checks "end startbot" "$@"
|
debug_checks "end startbot" "$@"
|
||||||
exit
|
exit
|
||||||
;;
|
;;
|
||||||
@ -797,7 +797,7 @@ if [ -z "${SOURCE}" ]; then
|
|||||||
"start")
|
"start")
|
||||||
SESSION="${ME:-_bot}-startbot"
|
SESSION="${ME:-_bot}-startbot"
|
||||||
BOTPID="$(proclist "${SESSION}")"
|
BOTPID="$(proclist "${SESSION}")"
|
||||||
if _is_function process_updates; then
|
if _is_function process_update; then
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
[ -n "${BOTPID}" ] && kill ${BOTPID}
|
[ -n "${BOTPID}" ] && kill ${BOTPID}
|
||||||
nohup "${SCRIPT}" "startbot" "$2" "${SESSION}" &>/dev/null &
|
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
|
# AUTHOR: KayM (gnadelwartz), kay@rrr.de
|
||||||
# CREATED: 30.01.2021 10:24
|
# 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)
|
#### [Prev Best Practice](5_practice.md)
|
||||||
#### [Next Notes for Developers](7_develop.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