mirror of
https://github.com/octoleo/telegram-bot-bash.git
synced 2025-04-11 08:31:51 +00:00
spell correction
This commit is contained in:
parent
2d48670680
commit
28de99eaeb
@ -242,9 +242,9 @@ else
|
|||||||
|
|
||||||
# debug function called on start, stop of bot, interactive and background processes
|
# debug function called on start, stop of bot, interactive and background processes
|
||||||
# if your bot was started with debug as second argument
|
# if your bot was started with debug as second argument
|
||||||
# $1 current date, $2 from where the function wqs called, $3 ... $n optional information
|
# $1 current date, $2 from where the function was called, $3 ... $n optional information
|
||||||
my_debug_checks() {
|
my_debug_checks() {
|
||||||
# example check because my bot creates a wrong file, this was becuase an empty variable
|
# example check because my bot created a wrong file
|
||||||
[ -f ".jssh" ] && printf "%s: %s\n" "${1}" "Ups, found file \"${PWD:-.}/.jssh\"! =========="
|
[ -f ".jssh" ] && printf "%s: %s\n" "${1}" "Ups, found file \"${PWD:-.}/.jssh\"! =========="
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user