mirror of
https://github.com/octoleo/telegram-bot-bash.git
synced 2024-11-29 02:36:26 +00:00
revert jsshDB optimisation
This commit is contained in:
parent
05b81ff31d
commit
5d9df7b7fd
@ -30,7 +30,7 @@
|
||||
# 8 - curl/wget missing
|
||||
# 10 - not bash!
|
||||
#
|
||||
#### $$VERSION$$ v1.21-pre-17-g652398e
|
||||
#### $$VERSION$$ v1.21-pre-18-g05b81ff
|
||||
##################################################################
|
||||
|
||||
# emmbeded system may claim bash but it is not
|
||||
@ -334,8 +334,10 @@ done
|
||||
# do we have BSD sed
|
||||
sed '1ia' </dev/null 2>/dev/null || printf "${ORANGE}Warning: You may run on a BSD style system without gnu utils ...${NN}"
|
||||
#jsonDB is now mandatory
|
||||
_is_function jssh_newDB || printf "${RED}ERROR: Mandatory module jsonDB is missing or not readable!${NN}" && exit 6
|
||||
|
||||
if ! _is_function jssh_newDB; then
|
||||
printf "${RED}ERROR: Mandatory module jsonDB is missing or not readable!${NN}"
|
||||
exit 6
|
||||
fi
|
||||
|
||||
# $1 URL, $2 filename in DATADIR
|
||||
# outputs final filename
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
#### $$VERSION$$ v1.21-dev-26-gbe87ba3
|
||||
#### $$VERSION$$ v1.21-pre-18-g05b81ff
|
||||
|
||||
# include common functions and definitions
|
||||
# shellcheck source=test/ALL-tests.inc.sh
|
||||
@ -7,7 +7,7 @@ source "./ALL-tests.inc.sh"
|
||||
|
||||
TESTFILES="${TOKENFILE} ${ACLFILE} ${COUNTFILE} ${BLOCKEDFILE} ${ADMINFILE}"
|
||||
|
||||
set -e
|
||||
#set -e
|
||||
|
||||
# run bashbot first time with init
|
||||
"${TESTDIR}/bashbot.sh" init >"${LOGFILE}" <<EOF
|
||||
|
Loading…
Reference in New Issue
Block a user