From 9c6864589bfd1c711716cebd4ce49d6e14fa6d27 Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Wed, 26 Oct 2016 11:53:44 +0200 Subject: [PATCH] Allow x.y.z for macOS versions --- include/osdetection | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/osdetection b/include/osdetection index 3793473b..317103ae 100644 --- a/include/osdetection +++ b/include/osdetection @@ -48,7 +48,7 @@ 10.9) OS_FULLNAME="Mac OS X 10.9 (Mavericks)" ;; 10.10) OS_FULLNAME="Mac OS X 10.10 (Yosemite)" ;; 10.11) OS_FULLNAME="Mac OS X 10.11 (El Capitan)" ;; - 10.12) OS_NAME="macOS"; OS_FULLNAME="10.12 (Sierra)" ;; + "10.12" | "10.12.[0-9]") OS_NAME="macOS"; OS_FULLNAME="macOS Sierra (${OS_VERSION})" ;; *) echo "Unknown macOS version. Do you know what version it is? Create an issue at ${PROGRAM_SOURCE}" ;; esac else