Skip to content

Commit 2f90ec0

Browse files
authored
Merge pull request #525 from MitchWeaver/master
add OpenBSD support
2 parents cf130d0 + 1ff8f4b commit 2f90ec0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

updateHostsFile.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@
3838
raw_input = raw_input # noqa
3939

4040
# Syntactic sugar for "sudo" command in UNIX / Linux
41-
SUDO = ["/usr/bin/env", "sudo"]
41+
if platform.system() == "OpenBSD":
42+
SUDO = ["/usr/bin/doas"]
43+
else:
44+
SUDO = ["/usr/bin/env", "sudo"]
4245

4346

4447
# Project Settings

0 commit comments

Comments
 (0)