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
This commit is contained in:
parent
22d2c97b81
commit
99cac0b135
1 changed files with 1 additions and 1 deletions
|
@ -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);\
|
||||
|
|
Loading…
Add table
Reference in a new issue