bad at bashj
Some checks failed
Run tests / run_tests (push) Failing after 57s

This commit is contained in:
Snorre 2025-04-06 05:41:40 +02:00
parent d06ccea420
commit 8e0773688e

View file

@ -142,12 +142,12 @@ in {
''
mkdir -p ${path}
# Make sure there is a database
if [ -z "${path}/${dbname}" ]; then
if [ ! -e "${path}/${dbname}" ]; then
cp ${defaultDB} "${path}/${dbname}"
fi
maxIndex=$(${sq} 'SELECT InternalId FROM Users ORDER BY InternalId DESC LIMIT 1')
if [ -n "$maxIndex" ]; then
if [ -z "$maxIndex" ]; then
maxIndex="1"
fi