added file creation before running main loop

This commit is contained in:
celso 2023-03-27 01:46:59 -03:00
parent c14d8b5a08
commit 751c0b70a9
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" exec 2>>"${bot_tmpdir}/error.log"
. ./bashbot-lib/bashbot-lib.sh . ./bashbot-lib/bashbot-lib.sh