mirror of
https://github.com/StevenBlack/hosts.git
synced 2024-07-07 13:02:27 +02:00
Merge pull request #2027 from gprestes/patch-1
Add MacOS to check to sudo overwrite hostfile
This commit is contained in:
commit
fa41eaa31e
@ -1307,7 +1307,7 @@ def move_hosts_file_into_place(final_file):
|
||||
except Exception:
|
||||
print_failure(f"Replacing content of {target_file} failed.")
|
||||
return False
|
||||
elif platform.system() == "Linux" or platform.system() == "Windows":
|
||||
elif platform.system() == "Linux" or platform.system() == "Windows" or platform.system() == "Darwin":
|
||||
print(
|
||||
f"Replacing {target_file} requires root privileges. You might need to enter your password."
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user