Format the macOS minor version number with two digits.
This way we get consistent 4-digit version numbers even for macOS verions like 10.3 or 11.0 where the minor number is a single digit. For example. 10.3 will be formatted as 1003 and 11.0 will be 1100.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
# Copyright 2020 One Identity LLC. ALL RIGHTS RESERVED
|
||||
pp_revision="20200813"
|
||||
pp_revision="20200814"
|
||||
# Copyright 2018 One Identity LLC. ALL RIGHTS RESERVED.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
@@ -7686,7 +7686,7 @@ pp_backend_macos_probe () {
|
||||
"Mac OS X") name="macos";;
|
||||
*) name="unknown";;
|
||||
esac
|
||||
vers=`sw_vers -productVersion | sed -e 's/^\([^.]*\)\.\([^.]*\).*/\1\2/'`
|
||||
vers=`sw_vers -productVersion | awk -F. '{ printf "%d%02d\n", $1, $2 }'`
|
||||
arch=`arch`
|
||||
echo "$name$vers-$arch"
|
||||
}
|
||||
|
Reference in New Issue
Block a user