mirror of
https://github.com/StevenBlack/hosts.git
synced 2024-07-07 13:02:27 +02: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:
parent
5f2bb91173
commit
2b18fa1e1a
@ -90,10 +90,10 @@ exclusionRegexs = []
|
||||
numberOfRules = 0
|
||||
|
||||
def main():
|
||||
removeOldHostsFile()
|
||||
promptForUpdate()
|
||||
promptForExclusions()
|
||||
mergeFile = createInitialFile()
|
||||
removeOldHostsFile()
|
||||
finalFile = removeDupsAndExcl(mergeFile)
|
||||
finalizeFile(finalFile)
|
||||
updateReadme(numberOfRules)
|
||||
|
Loading…
Reference in New Issue
Block a user