From 751c0b70a90d3ec69ed23cd62c038d7b89e5df49 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