From 8bb6beac06c2281ab8b3b79a67710597773142dc Mon Sep 17 00:00:00 2001 From: MarHai Date: Sat, 14 Feb 2015 11:24:05 +0100 Subject: [PATCH] create log file if not existent --- bot.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bot.sh b/bot.sh index dbb4629..cf539f0 100755 --- a/bot.sh +++ b/bot.sh @@ -103,6 +103,8 @@ if [ -e "$sLogfile" ]; then done < $sLogfile else echo "No log file found." + touch "$sLogfile" + echo "Log file created at $sLogfile" fi # dry mode