From 7717070c20644bfc1788989b81c0deab99642496 Mon Sep 17 00:00:00 2001 From: Marcus Westin Date: Tue, 20 Jun 2017 12:19:10 -0400 Subject: [PATCH] scripts/release.sh: fix git diff version bump change check --- scripts/release.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/release.sh b/scripts/release.sh index b5987170..a52f132d 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -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