Skip to content

Commit

Permalink
Fixed syntax error in release script
Browse files Browse the repository at this point in the history
  • Loading branch information
1ec5 committed Feb 2, 2021
1 parent 717bdf4 commit 3903347
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/update-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ sed -i '' -E "s/## *main/## ${SHORT_VERSION}/g" CHANGELOG.md
# Skip updating the installation instructions for patch releases or prereleases.
if [[ $SHORT_VERSION == $SEM_VERSION && $SHORT_VERSION == *.0 ]]; then
step "Updating readmes to version ${SEM_VERSION}"
sed -i '' -E "s/~> *[^']+/~> ${MINOR_VERSION}/g; s/from: \"*[^\"]+/from: \"${SEM_VERSION}/g; s/`[^`]+` as the minimum version/`${SEM_VERSION}` as the minimum version/g" README.md custom-navigation.md
sed -i '' -E "s/~> *[^']+/~> ${MINOR_VERSION}/g; s/from: \"*[^\"]+/from: \"${SEM_VERSION}/g; s/\`[^\`]+\` as the minimum version/`${SEM_VERSION}` as the minimum version/g" README.md custom-navigation.md
elif [[ $SHORT_VERSION != $SEM_VERSION ]]; then
step "Updating readmes to version ${SEM_VERSION}"
sed -i '' -E "s/:tag => 'v[^']+'/:tag => 'v${SEM_VERSION}'/g; s/\"mapbox\/mapbox-navigation-ios\" \"v[^\"]+\"/\"mapbox\/mapbox-navigation-ios\" \"v${SEM_VERSION}\"/g; s/\.exact\(\"*[^\"]+/.exact(\"${SEM_VERSION}/g" README.md custom-navigation.md
Expand Down

0 comments on commit 3903347

Please sign in to comment.