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:
236adfb
)
Fix breakage for Linux
author
DPTJKKVH
<redacted>
Mon, 25 Jul 2022 12:22:30 +0000
(12:22 +0000)
committer
GitHub
<redacted>
Mon, 25 Jul 2022 12:22:30 +0000
(12:22 +0000)
Partially revert commit https://github.com/StevenBlack/hosts/commit/
0a99194b2844bbc026ab62da69798fdc34815a79
to fix #2015
updateHostsFile.py
patch
|
blob
|
history
diff --git
a/updateHostsFile.py
b/updateHostsFile.py
index 12896c785326844a2d925ea81430d8d3e3576eb1..429ab94764e86a753f49655af3d7cce8894cd676 100755
(executable)
--- a/
updateHostsFile.py
+++ b/
updateHostsFile.py
@@
-1312,7
+1312,7
@@
def move_hosts_file_into_place(final_file):
f"Replacing {target_file} requires root privileges. You might need to enter your password."
)
try:
- subprocess.run(SUDO + [
f"'cp {filename} {target_file}'"], check=True, shell
=True)
+ subprocess.run(SUDO + [
"cp", filename, target_file], check
=True)
return True
except subprocess.CalledProcessError:
print_failure(f"Replacing {target_file} failed.")
git clone https://git.99rst.org/PROJECT