Skip to content

Commit

Permalink
fix check-existing-release
Browse files Browse the repository at this point in the history
  • Loading branch information
adambabik committed Sep 3, 2019
1 parent 72c69fc commit 4ef35fa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,10 @@ clean-release:
rm -rf $(RELEASE_DIR)

check-existing-release:
@git ls-remote --exit-code origin "v$(RELEASE_TAG)" >/dev/null && \
echo "$(YELLOW)Release tag already exists: v$(RELEASE_TAG)$(RESET)"; \
echo "Remove the tag/release if you want to re-create it."; \
exit 1
@git ls-remote --exit-code origin "v$(RELEASE_TAG)" >/dev/null || exit 0; \
echo "$(YELLOW)Release tag already exists: v$(RELEASE_TAG)$(RESET)"; \
echo "Remove the tag/release if you want to re-create it."; \
exit 1;

release: check-existing-release
@read -p "Are you sure you want to create a new GitHub $(RELEASE_TYPE) against $(RELEASE_BRANCH) branch? (y/n): " REPLY; \
Expand Down

0 comments on commit 4ef35fa

Please sign in to comment.