Skip to content

Commit

Permalink
release.sh: stop if working copy is dirty or lint fails
Browse files Browse the repository at this point in the history
  • Loading branch information
amezin committed Mar 29, 2021
1 parent 133ebff commit a24768f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,17 @@ set -ex

command -V jq

if [ -n "$(git status --untracked-files=no --porcelain .)" ]; then
if [ -n "$(git status --porcelain .)" ]; then
echo Working copy is dirty
git status --untracked-files=no .
git status .
exit 1
fi

CURRENT_VERSION=$(jq .version metadata.json)
NEXT_VERSION=$(( ${CURRENT_VERSION} + 1 ))

rm -f *.shell-extension.zip
make
make pack

git tag v${CURRENT_VERSION}
Expand Down

0 comments on commit a24768f

Please sign in to comment.