From 8fc56a4efcb80104ca636728cae8084de6605590 Mon Sep 17 00:00:00 2001 From: Michael Gutbier <migu@cgan.de> Date: Mon, 23 Dec 2019 00:54:10 +0100 Subject: [PATCH] fix bug in build script Get the date from the passed revision. --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 8f40aba..41bf86e 100755 --- a/build.sh +++ b/build.sh @@ -6,7 +6,7 @@ if [[ $# -ne 1 ]]; then fi revision="$1" -commit_date=$(git show -s --format=%ci $CI_COMMIT_SHA | cut -c1-10) +commit_date=$(git show -s --format=%ci ${revision} | cut -c1-10) asciidoctor-pdf -a revnumber=${revision} -a revdate=${commit_date} -o angelguide_en.pdf guide.adoc asciidoctor-pdf -a revnumber=${revision} -a revdate=${commit_date} -o angelguide_de.pdf -a lang=de guide.adoc -- GitLab