added file creation before running main loop

This commit is contained in:
celso 2023-03-27 01:46:59 -03:00
parent 791ed382db
commit cbe119ff37
1 changed files with 5 additions and 0 deletions

5
bot.sh
View File

@ -15,6 +15,11 @@ bot_tmpdir="/tmp/tpdnsbot/"
}
}
files=( "updates.txt" "sentmsgs.txt" "error.log" )
for i in "${files[@]}"; do
touch "${bot_tmpdir}${i}"
done
exec 2>>"${bot_tmpdir}/error.log"
. ./bashbot-lib/bashbot-lib.sh