Allow two-part OS X version numbers
This commit is contained in:
parent
7114581400
commit
f1587a4c0e
1 changed files with 2 additions and 2 deletions
|
@ -9,9 +9,9 @@ export UNAME=$(uname)
|
|||
if [ -z "$RID" ]; then
|
||||
if [ "$UNAME" == "Darwin" ]; then
|
||||
export OSNAME=osx
|
||||
if [ -n "$(sw_vers -productVersion | grep 10.10.)" ]; then
|
||||
if [ -n "$(sw_vers -productVersion | grep 10.10)" ]; then
|
||||
export RID=osx.10.10-x64
|
||||
elif [ -n "$(sw_vers -productVersion | grep 10.11.)" ]; then
|
||||
elif [ -n "$(sw_vers -productVersion | grep 10.11)" ]; then
|
||||
export RID=osx.10.10-x64
|
||||
else
|
||||
error "unknown OS X: $(sw_vers -productVersion)" 1>&2
|
||||
|
|
Loading…
Reference in a new issue