Skip to content

Commit 01c900b

Browse files
committed
Cajole makefile into working with GNU grep
1 parent a17ac59 commit 01c900b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ flit-publish: test ## Deploy the package to pypi
6262
package: dist/${PACKAGE_NAME}
6363

6464
cut-release: ## Release a new version of snooty. Must provide BUMP_TO_VERSION
65-
@if [ $$(echo "${BUMP_TO_VERSION}" | grep -cE '^\d+\.\d+\.\d+(-[[:alnum:]_-]+)?$$') -ne 1 ]; then \
65+
@if [ $$(echo "${BUMP_TO_VERSION}" | grep -cE '^[0-9]+\.[0-9]+\.[0-9]+(-[[:alnum:]_-]+)?$$') -ne 1 ]; then \
6666
echo "Must specify a valid BUMP_TO_VERSION (e.g. 'make cut-release BUMP_TO_VERSION=0.1.15')"; \
6767
exit 1; \
6868
fi

0 commit comments

Comments
 (0)