And make the release script actually work again.
Summary: The previous commit made the `sed` lines do the same thing on mac and linux. Unfortunately they didn't actually work. Whoops. Test Plan: - Run `./release.sh` a couple times and become horribly confused before realizing what's going on. @kevinb
This commit is contained in:
parent
4327e85796
commit
225baffef4
|
@ -38,7 +38,7 @@ git add dist/
|
|||
# Edit package.json and bower.json to the right version (see
|
||||
# http://stackoverflow.com/a/22084103 for why we need the .bak file to make
|
||||
# this mac & linux compatible)
|
||||
sed -i.bak 's|"version": "[^"]+",|"version": "'$VERSION'",|' package.json
|
||||
sed -i.bak -E 's|"version": "[^"]+",|"version": "'$VERSION'",|' package.json
|
||||
sed -i.bak -E 's|"version": "[^"]+",|"version": "'$VERSION'",|' bower.json
|
||||
rm -f package.json.bak bower.json.bak
|
||||
|
||||
|
@ -56,8 +56,8 @@ if [ ! -z "$NEXT_VERSION" ]; then
|
|||
git checkout master
|
||||
|
||||
# Edit package.json and bower.json to the right version
|
||||
sed -i.bak -e 's|"version": "[^"]+",|"version": "'$NEXT_VERSION'-pre",|' package.json
|
||||
sed -i.bak -e 's|"version": "[^"]+",|"version": "'$NEXT_VERSION'-pre",|' bower.json
|
||||
sed -i.bak -E 's|"version": "[^"]+",|"version": "'$NEXT_VERSION'-pre",|' package.json
|
||||
sed -i.bak -E 's|"version": "[^"]+",|"version": "'$NEXT_VERSION'-pre",|' bower.json
|
||||
rm -f package.json.bak bower.json.bak
|
||||
|
||||
git add package.json bower.json
|
||||
|
|
Loading…
Reference in New Issue
Block a user