Skip to content

Commit

Permalink
update version check
Browse files Browse the repository at this point in the history
  • Loading branch information
atavism committed Nov 16, 2024
1 parent 4ac23d4 commit 77c70df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ require-app: guard-APP

.PHONY: require-version
require-version: guard-VERSION
@if ! [[ "$$VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+(-.+)?$$ ]]; then \
@if ! echo "$$VERSION" | grep -Eq "^[0-9]+\.[0-9]+\.[0-9]+(-.+)?$$"; then \
echo "VERSION must be a semantic version like '1.2.10' or '1.2.10-foo"; \
exit 1; \
fi
Expand Down

0 comments on commit 77c70df

Please sign in to comment.