mirror of
https://github.com/octoleo/telegram-bot-bash.git
synced 2025-01-05 15:32:10 +00:00
fix wrong BASHBOTTOKEN is not empty on startup
This commit is contained in:
parent
2e9587a11d
commit
20a969c1fe
@ -97,7 +97,7 @@ DATADIR="${BASHBOT_VAR:-.}/data-bot-bash"
|
|||||||
COUNTFILE="${BASHBOT_VAR:-.}/count"
|
COUNTFILE="${BASHBOT_VAR:-.}/count"
|
||||||
|
|
||||||
# we assume everthing is already set up correctly if we have TOKEN
|
# we assume everthing is already set up correctly if we have TOKEN
|
||||||
if [ -z "${BOTTOKEN}" ]; then
|
if [ -n "${BOTTOKEN}" ]; then
|
||||||
# BOTTOKEN empty read from file
|
# BOTTOKEN empty read from file
|
||||||
if [ ! -f "${TOKENFILE}" ]; then
|
if [ ! -f "${TOKENFILE}" ]; then
|
||||||
if [ -z "${CLEAR}" ] && [ "$1" != "init" ]; then
|
if [ -z "${CLEAR}" ] && [ "$1" != "init" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user