Skip to content

Commit

Permalink
create log file if not existent
Browse files Browse the repository at this point in the history
  • Loading branch information
MarHai committed Feb 14, 2015
1 parent 5032f9b commit 8bb6bea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8bb6bea

Please sign in to comment.