summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToshio Kuratomi <a.badger@gmail.com>2020-08-03 11:21:18 -0700
committerToshio Kuratomi <a.badger@gmail.com>2020-08-14 13:01:29 -0700
commit99cac0b1351aaeb26dc059d9a72a105b1b2e0293 (patch)
tree8950d13918b17335275994a61679fefed768d6d8
parent22d2c97b81ff7243be8290868d2df5bf400f9bfb (diff)
downloadansible-99cac0b1351aaeb26dc059d9a72a105b1b2e0293.tar.gz
Fix expr regex for MacOSX compat
MacOSX seems to want bare `+` whereas GNU expr wants escaped `+` (`\+`) to mean match one or more. Use `\{1,\}` instead which will match one or more on both MaxOSX and GNU-using systems. Fixes #71053
-rw-r--r--docs/docsite/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/docsite/Makefile b/docs/docsite/Makefile
index 8993da1e3e..c3c2d4c721 100644
--- a/docs/docsite/Makefile
+++ b/docs/docsite/Makefile
@@ -118,7 +118,7 @@ config: ../templates/config.rst.j2
# For now, if we're building on devel, just build base docs. In the future we'll want to build docs that
# are the latest versions on galaxy (using a different antsibull-docs subcommand)
plugins:
- if expr "$(VERSION)" : '.*[.]dev[0-9]\+$$' &> /dev/null; then \
+ if expr "$(VERSION)" : '.*[.]dev[0-9]\{1,\}$$' &> /dev/null; then \
$(PLUGIN_FORMATTER) base -o rst $(PLUGIN_ARGS);\
else \
$(PLUGIN_FORMATTER) full -o rst $(PLUGIN_ARGS);\