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()