From d7ca034ad558d8cd8b2c8d157868f1590473a3a1 Mon Sep 17 00:00:00 2001 From: Mike Grabowski Date: Thu, 16 Feb 2017 20:43:12 -0800 Subject: [PATCH] Match on `s.version` only Summary: Recent PR by alloy adds `s.cocoapods_version`. That makes `release script` also modify that value. Adding `\` makes `sed` match on a dot character (I believe missing `\` was a mistake). Used and tested here: https://github.com/facebook/react-native/commits/0.42-stable CC bestander Closes https://github.com/facebook/react-native/pull/12381 Differential Revision: D4558370 Pulled By: bestander fbshipit-source-id: 3bee7bac3002c0c83c100ce9d0c67463e030a428 --- scripts/bump-oss-version.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/bump-oss-version.js b/scripts/bump-oss-version.js index 99c304aff738db..58e63216fd4276 100755 --- a/scripts/bump-oss-version.js +++ b/scripts/bump-oss-version.js @@ -55,7 +55,7 @@ if (sed(`-i`, /^VERSION_NAME=.*/, `VERSION_NAME=${version}`, `ReactAndroid/gradl } // - change React.podspec -if (sed(`-i`, /s.version\s*=.*/, `s.version = \"${version}\"`, `React.podspec`).code) { +if (sed(`-i`, /s\.version\s*=.*/, `s.version = \"${version}\"`, `React.podspec`).code) { echo(`Couldn't update version for React.podspec`); exit(1); }