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:
4b8995a
)
Correcting syntax error with elif.
author
Ben Limmer
<redacted>
Sat, 13 Jul 2013 22:24:06 +0000
(16:24 -0600)
committer
Ben Limmer
<redacted>
Sat, 13 Jul 2013 22:24:06 +0000
(16:24 -0600)
updateHostsFile.py
patch
|
blob
|
history
diff --git
a/updateHostsFile.py
b/updateHostsFile.py
index ead65d9698312732058d7f7d57303416bc17e9de..805f9ad74c816eb8b91cf1f6dd6b038713f479c3 100644
(file)
--- a/
updateHostsFile.py
+++ b/
updateHostsFile.py
@@
-208,7
+208,7
@@
def moveHostsFileIntoPlace(finalFile):
else:
if(subprocess.call(["/usr/bin/sudo", "/etc/rc.d/init.d/nscd", "restart"])):
printFailure("Flushing the DNS Cache failed.")
- el
se
if (os.name == 'nt'):
+ elif (os.name == 'nt'):
print 'Automatically moving the hosts file in place is not yet supported.'
print 'Please move the generated file to %SystemRoot%\system32\drivers\etc\hosts'
git clone https://git.99rst.org/PROJECT