git.99rst.org
/
stevenblack-hosts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
5f2bb91
)
better delete after updating so we dont end up with an empty hosts file if update...
author
Hannes Domschke
<redacted>
Sun, 15 Nov 2015 22:23:06 +0000
(23:23 +0100)
committer
Hannes Domschke
<redacted>
Sun, 15 Nov 2015 22:23:06 +0000
(23:23 +0100)
updateHostsFile.py
patch
|
blob
|
history
diff --git
a/updateHostsFile.py
b/updateHostsFile.py
index 8047d734ec07eb147cd5754f8cd2a727b8f16c5e..9f3b642865df2e9e863146531039c44a897539b8 100755
(executable)
--- 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)
git clone https://git.99rst.org/PROJECT