From: Hannes Domschke Date: Sun, 15 Nov 2015 22:23:06 +0000 (+0100) Subject: better delete after updating so we dont end up with an empty hosts file if update... X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=2b18fa1e1a2b53cf1f6334cefe5e4fb7ea59e263;p=stevenblack-hosts.git better delete after updating so we dont end up with an empty hosts file if update goes wrong and causes a crash --- diff --git a/updateHostsFile.py b/updateHostsFile.py index 8047d734e..9f3b64286 100755 --- a/updateHostsFile.py +++ b/updateHostsFile.py @@ -90,10 +90,10 @@ exclusionRegexs = [] numberOfRules = 0 def main(): - removeOldHostsFile() promptForUpdate() promptForExclusions() mergeFile = createInitialFile() + removeOldHostsFile() finalFile = removeDupsAndExcl(mergeFile) finalizeFile(finalFile) updateReadme(numberOfRules)