mirror of
https://github.com/StevenBlack/hosts.git
synced 2024-07-04 19:46:02 +02:00
add OpenBSD support
This commit is contained in:
parent
cf130d092c
commit
1ff8f4b13d
|
@ -38,6 +38,9 @@ else: # Python 2
|
|||
raw_input = raw_input # noqa
|
||||
|
||||
# Syntactic sugar for "sudo" command in UNIX / Linux
|
||||
if platform.system() == "OpenBSD":
|
||||
SUDO = ["/usr/bin/doas"]
|
||||
else:
|
||||
SUDO = ["/usr/bin/env", "sudo"]
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user