mirror of
https://github.com/StevenBlack/hosts.git
synced 2026-11-15 07:08:20 +00:00
add OpenBSD support
This commit is contained in:
1 parent
cf130d092c
commit
1ff8f4b13d
1 file changed
+4
-1
+4
-1
@@ -38,7 +38,10 @@ else: # Python 2
|
||||
raw_input = raw_input # noqa
|
||||
|
||||
# Syntactic sugar for "sudo" command in UNIX / Linux
|
||||
SUDO = ["/usr/bin/env", "sudo"]
|
||||
if platform.system() == "OpenBSD":
|
||||
SUDO = ["/usr/bin/doas"]
|
||||
else:
|
||||
SUDO = ["/usr/bin/env", "sudo"]
|
||||
|
||||
|
||||
# Project Settings
|
||||
|
||||
Reference in new issue
Block a user