Skip to content

Commit

Permalink
fixed: makefile rule to check the working tree.
Browse files Browse the repository at this point in the history
  • Loading branch information
diasbruno committed Feb 25, 2020
1 parent 5fdcfdd commit 83c5e29
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,8 @@ docs: build-docs
# Rules for build and publish

check-working-tree:
@[ ! -z "`git status -s`" ] && \
echo "Stopping publish. There are change to commit or discard." && \
exit 1
@[ -z "`git status -s`" ] && \
echo "Stopping publish. There are change to commit or discard." || echo "Worktree is clean."

changelog:
@echo "[Updating CHANGELOG.md $(CURRENT_VERSION) > $(VERSION)]"
Expand Down

0 comments on commit 83c5e29

Please sign in to comment.