Skip to content

Commit 83c5e29

Browse files
committed
fixed: makefile rule to check the working tree.
1 parent 5fdcfdd commit 83c5e29

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Diff for: Makefile

+2-3
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,8 @@ docs: build-docs
7474
# Rules for build and publish
7575

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

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

0 commit comments

Comments
 (0)