From cbe119ff37d054eedb95a53e7365f478a0d1bd58 Mon Sep 17 00:00:00 2001 From: celso Date: Mon, 27 Mar 2023 01:46:59 -0300 Subject: [PATCH] added file creation before running main loop --- bot.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bot.sh b/bot.sh index 86e1877..3729e14 100755 --- a/bot.sh +++ b/bot.sh @@ -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