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:
b40aa38
)
Add back the '-' after hosts in the filename
author
Guilherme Heuser Prestes
<redacted>
Fri, 24 Apr 2020 19:16:07 +0000
(21:16 +0200)
committer
GitHub
<redacted>
Fri, 24 Apr 2020 19:16:07 +0000
(21:16 +0200)
updateHostsFile.py
patch
|
blob
|
history
diff --git
a/updateHostsFile.py
b/updateHostsFile.py
index fffb5dafc8ffadaad733d33b08141b0ab9e07c6b..89b3e7b67ed1a81ed47c96f0602f5736797e55c6 100644
(file)
--- a/
updateHostsFile.py
+++ b/
updateHostsFile.py
@@
-1345,7
+1345,7
@@
def remove_old_hosts_file(old_file_path, backup):
open(old_file_path, "a").close()
if backup:
- backup_file_path = old_file_path + "{}".format(
+ backup_file_path = old_file_path + "
-
{}".format(
time.strftime("%Y-%m-%d-%H-%M-%S")
)
git clone https://git.99rst.org/PROJECT