From c829c3cba9424281de4496770066c08cf2efc5d7 Mon Sep 17 00:00:00 2001 From: Aditya Duri Date: Thu, 1 Jul 2021 02:27:50 -0500 Subject: [PATCH] Account for macOS versions without a patch number (ex: 11.3) (#238) --- fbs/installer/mac/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fbs/installer/mac/__init__.py b/fbs/installer/mac/__init__.py index 5ed5173..36a87e5 100644 --- a/fbs/installer/mac/__init__.py +++ b/fbs/installer/mac/__init__.py @@ -24,7 +24,7 @@ def create_installer_mac(): ] if is_mac(): - major, minor, patch = platform.mac_ver()[0].split('.') + major, minor = platform.mac_ver()[0].split('.')[:2] if (int(major) == 10 and int(minor) >= 15) or int(major) >= 11: pdata.insert(1, '--no-internet-enable')