From 99cac0b1351aaeb26dc059d9a72a105b1b2e0293 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Mon, 3 Aug 2020 11:21:18 -0700 Subject: [PATCH] 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 --- docs/docsite/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docsite/Makefile b/docs/docsite/Makefile index 8993da1e3e5..c3c2d4c7213 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);\