From de811c173a3fd6fafa9864405b610e2a1ceb0b29 Mon Sep 17 00:00:00 2001 From: "Kay Marquardt (Gnadelwartz)" Date: Sun, 14 Jun 2020 13:57:36 +0200 Subject: [PATCH] fix order of debug start message --- bashbot.sh | 6 +++--- doc/2_usage.md | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bashbot.sh b/bashbot.sh index a8e410c..227f99a 100755 --- a/bashbot.sh +++ b/bashbot.sh @@ -11,7 +11,7 @@ # This file is public domain in the USA and all free countries. # Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying) # -#### $$VERSION$$ v0.98-dev-9-ge0b9f6f +#### $$VERSION$$ v0.98-dev-11-g6563891 # # Exit Codes: # - 0 sucess (hopefully) @@ -804,9 +804,9 @@ start_bot() { # startup message DEBUG="$(date):Start BASHBOT updates in Mode \"${1:-normal}\" ==========" printf "%s\n" "${DEBUG}" >>"${UPDATELOG}" - printf "%s\n" "${DEBUG}"; DEBUG="${1}" # redirect to Debug.log - [[ "${DEBUG}" == *"debug" ]] && exec &>>"${DEBUGLOG}" + [[ "${1}" == *"debug" ]] && exec &>>"${DEBUGLOG}" + printf "%s\n" "${DEBUG}"; DEBUG="${1}" [[ "${DEBUG}" == "xdebug"* ]] && set -x #cleaup old pipes and empty logfiles find "${DATADIR}" -type p -delete diff --git a/doc/2_usage.md b/doc/2_usage.md index e8fdb9d..11b3e10 100644 --- a/doc/2_usage.md +++ b/doc/2_usage.md @@ -32,7 +32,7 @@ Have FUN! ├── scripts # place your bashbot interactive and background scripts here │   └── interactive.sh.clean # interactive script template for new scripts │ -├── logs # here you'll find ERROR, UPDSTE, DEBUG and MESSAGE.log +├── logs # here you'll find ERROR, UPDATE, DEBUG and MESSAGE.log │ ├── modules # optional functions, sourced by commands.sh │   ├── aliases.sh # to disable modules rename them xxx.sh.off @@ -261,5 +261,5 @@ send_action "${CHAT[ID]}" "action" #### [Prev Create Bot](1_firstbot.md) #### [Next Advanced Usage](3_advanced.md) -#### $$VERSION$$ v0.98-dev-10-g74caa49 +#### $$VERSION$$ v0.98-dev-11-g6563891