From 4ce410f920db42c95f48b29b0331a67115ab387d Mon Sep 17 00:00:00 2001 From: Mike Grabowski Date: Tue, 14 Feb 2017 15:04:37 +0100 Subject: [PATCH] Match on `s.version` only 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 --- 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); }