Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Boelen <michael.boelen@cisofy.com>2016-10-26 12:53:44 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2016-10-26 12:53:44 +0300
commit9c6864589bfd1c711716cebd4ce49d6e14fa6d27 (patch)
tree1a0842b0e81d9ae719291c067814201e95ce8a3a
parent26489d03e9ff55243fb0b9d8c70da6d7433f2ee0 (diff)
Allow x.y.z for macOS versions
-rw-r--r--include/osdetection2
1 files changed, 1 insertions, 1 deletions
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