From 11b5aab9b97182bc73f7bf53ada67d11ce9d3416 Mon Sep 17 00:00:00 2001 From: "Kay Marquardt (Gnadelwartz)" Date: Fri, 19 Jun 2020 12:56:09 +0200 Subject: [PATCH] do not create botconfig on help --- bashbot.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bashbot.sh b/bashbot.sh index e21ce31..75613e0 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-51-gcf536c9 +#### $$VERSION$$ v0.98-dev-52-g75024a1 # # Exit Codes: # - 0 sucess (hopefully) @@ -120,7 +120,7 @@ ERRORLOG="${LOGDIR}/ERROR.log" UPDATELOG="${LOGDIR}/BASHBOT.log" # we assume everthing is already set up correctly if we have TOKEN -if [ -z "${BOTTOKEN}" ]; then +if [[ -z "${BOTTOKEN}" && "${1}" != "help" ]]; then # BOTCONFIG does not exist, create [ ! -f "${BOTCONFIG}.jssh" ] && printf '["bot_config_key"]\t"config_key_value"\n' >"${BOTCONFIG}.jssh"