From 073a025b831bed1ab6e8f57c6ba2dc029efc80be Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Thu, 14 Feb 2019 14:20:31 +0000 Subject: [PATCH] Try again to commit package-lock.json --- release.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/release.sh b/release.sh index 7c7b80fcf..b639bb670 100755 --- a/release.sh +++ b/release.sh @@ -155,8 +155,8 @@ echo "npm version" # manually commit the result. npm version --no-git-tag-version "$release" -# commit package-lock.json if it exists and is versioned -if [[ -f package-lock.json && -z `git status --porcelain --ignored package-lock.json` ]]; +# commit package-lock.json if it exists, is versioned, and is modified +if [[ -f package-lock.json && `git status --porcelain package-lock.json | grep '^ M'` ]]; then pkglock='package-lock.json' else