Skip to content

Commit b861b30

Browse files
committed
osenum: Stop after first success getting version
Signed-off-by: Hector Martin <[email protected]>
1 parent ed6120d commit b861b30

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/osenum.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ def collect_os(self, part, volumes, vgid):
168168
"System/Library/CoreServices", name), "rb"))
169169
osi.version = sysver["ProductVersion"]
170170
logging.info(f" Version: {osi.version}")
171+
break
171172
except FileNotFoundError:
172173
logging.info(f" Not Found")
173174
continue

0 commit comments

Comments
 (0)