Skip to content

Commit 222bc66

Browse files
committed
fix distro handling
1 parent 4f4e10a commit 222bc66

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.evergreen/scripts/setup_tests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,9 @@ def setup_libmongocrypt():
114114
with open("/etc/os-release") as fid:
115115
for line in fid:
116116
if line.startswith("NAME="):
117-
_, _, name = line.strip().split("=")
117+
_, _, name = line.strip().partition("=")
118118
if line.startswith("VERSION_ID="):
119-
_, _, version = line.strip().split("=")
119+
_, _, version = line.strip().partition("=")
120120
if name.startswith("Debian"):
121121
target = f"debian{version_id}"
122122
elif name.startswith("Red Hat"):

0 commit comments

Comments
 (0)