Changeset f5b808b9


Ignore:
Timestamp:
Aug 11, 2012 11:40:05 AM (8 years ago)
Author:
meeh <meeh@…>
Branches:
master
Children:
e2b6835
Parents:
d2a5595
Message:

OSX: Fixed a bug in OS_VER variable.
the old version (grep -o '[0-9]*\.[0-9]*\.[0-9]*') won't detect versions as 10.8, or 10.7
added cut -d: -f2 | sed -e 's/[0-9]*' , matching both 10.8, 10.7.4, etc.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • installer/resources/i2prouter

    rd2a5595 rf5b808b9  
    360360if [ "$DIST_OS" = "macosx" ]
    361361then
    362     OS_VER=`sw_vers | grep 'ProductVersion:' | grep -o '[0-9]*\.[0-9]*\.[0-9]*'`
     362    OS_VER=`sw_vers | grep ProductVersion | cut -d: -f2 | sed -e 's/[^0-9]*//'`
    363363    DIST_ARCH="universal"
    364364    if [ $(sysctl -n hw.cpu64bit_capable) -eq 1 ]; then
Note: See TracChangeset for help on using the changeset viewer.