From edd032093f2c6d70213c78a0fc71f744dc98e2e8 Mon Sep 17 00:00:00 2001 From: Chessmaster <ccc@timo-rath.de> Date: Fri, 11 Dec 2020 21:58:36 +0100 Subject: [PATCH] fix grep parameter (shell not bash) --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 293c267..56361ce 100755 --- a/build.sh +++ b/build.sh @@ -6,7 +6,7 @@ if [[ $# -ne 1 ]]; then fi revision="$1" -version=$(echo $revision | grep -Po 'v[0-9.]*') +version=$(echo $revision | grep -Eo 'v[0-9.]*') commit_date=$(git show -s --format=%ci ${revision} | cut -c1-10) asciidoctor-pdf -a revnumber=${version} -a revdate=${commit_date} -o angelguide_en.pdf guide.adoc -- GitLab