mirror of
https://github.com/StevenBlack/hosts.git
synced 2026-11-15 15:18:01 +00:00
better delete after updating so we dont end up with an empty hosts file if update goes wrong and causes a crash
This commit is contained in:
1 parent
5f2bb91173
commit
2b18fa1e1a
1 file changed
+1
-1
+1
-1
@@ -90,10 +90,10 @@ exclusionRegexs = []
|
||||
numberOfRules = 0
|
||||
|
||||
def main():
|
||||
removeOldHostsFile()
|
||||
promptForUpdate()
|
||||
promptForExclusions()
|
||||
mergeFile = createInitialFile()
|
||||
removeOldHostsFile()
|
||||
finalFile = removeDupsAndExcl(mergeFile)
|
||||
finalizeFile(finalFile)
|
||||
updateReadme(numberOfRules)
|
||||
|
||||
Reference in new issue
Block a user