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
This commit is contained in:
parent
6283878e17
commit
096acbd53d
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue