Skip to content

Commit

Permalink
scripts/release.sh: fix git diff version bump change check
Browse files Browse the repository at this point in the history
  • Loading branch information
marcuswestin committed Jun 20, 2017
1 parent 6305795 commit 7717070
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ sed -E s/"version\: '[0-9]+\.[0-9]+\.[0-9]+'"/"version\: '$VERSION'"/ src/store-
mv /tmp/store-engine.js src/store-engine.js
cat src/store-engine.js | grep $VERSION -C 1

if [[ ! `git diff --stat` =~ "2 files changed, 2 insertions, 2 deletions" ]]; then
if [[ ! `git diff --stat` =~ "2 files changed, 2 insertions(+), 2 deletions(-)" ]]; then
echo "WARNING! Expected exactly 2 changes in 2 files after replacing version number. Bailing! (check git status and git diff)"
exit -1
fi
Expand Down

0 comments on commit 7717070

Please sign in to comment.