From 820c8366406ed632c671baa110e83f825efb1330 Mon Sep 17 00:00:00 2001 From: Jesse Eichar Date: Thu, 21 Jun 2012 12:25:51 +0200 Subject: [PATCH] fixed bug running these scripts on darwin11.0 machines --- updateBranchVersions.sh | 2 +- updateReleaseVersions.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/updateBranchVersions.sh b/updateBranchVersions.sh index 4b5d3cd6d76..14cfd5fe12b 100755 --- a/updateBranchVersions.sh +++ b/updateBranchVersions.sh @@ -47,7 +47,7 @@ if [[ $2 != [0-9].[0-9].[0-9] ]]; then fi # Note: In MacOS (darwin10.0) sed requires -i .bak as option to work properly -if [[ $OSTYPE == 'darwin10.0' ]]; then +if grep -q "darwin" <<< $OSTYPE ; then sedopt='-i .bak' else sedopt='-i' diff --git a/updateReleaseVersions.sh b/updateReleaseVersions.sh index 4c719990929..79f73432521 100755 --- a/updateReleaseVersions.sh +++ b/updateReleaseVersions.sh @@ -37,7 +37,7 @@ if [[ $1 != [0-9].[0-9].[0-9] ]]; then fi # Note: In MacOS (darwin10.0) sed requires -i .bak as option to work properly -if [[ $OSTYPE == 'darwin10.0' ]]; then +if grep -q "darwin" <<< $OSTYPE ; then sedopt='-i .bak' else sedopt='-i'