From 501fbd825abcaf11a82db38a2014989d3e26aa25 Mon Sep 17 00:00:00 2001 From: Christian Mehlmauer Date: Tue, 23 Jul 2013 19:10:51 +0200 Subject: [PATCH] clean logfile on wpstools too --- wpstools.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wpstools.rb b/wpstools.rb index 3b744da6..b140f9d7 100755 --- a/wpstools.rb +++ b/wpstools.rb @@ -5,6 +5,8 @@ $: << '.' require File.dirname(__FILE__) + '/lib/wpstools/wpstools_helper' begin + # delete old logfile, check if it is a symlink first. + File.delete(LOG_FILE) if File.exist?(LOG_FILE) and !File.symlink?(LOG_FILE) banner()