Allow two-part OS X version numbers

This commit is contained in:
Piotr Puszkiewicz 2015-12-29 20:16:05 -08:00
parent 7114581400
commit f1587a4c0e

View file

@ -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