diff --git a/docs/src/main/asciidoc/ghpages.sh b/docs/src/main/asciidoc/ghpages.sh index 9b83f744..3e2d762f 100755 --- a/docs/src/main/asciidoc/ghpages.sh +++ b/docs/src/main/asciidoc/ghpages.sh @@ -83,7 +83,7 @@ function retrieve_doc_properties() { -Dexec.args='${docs.main}' \ org.codehaus.mojo:exec-maven-plugin:1.3.1:exec \ -P docs \ - -pl docs) + -pl docs | tail -1 ) echo "Extracted 'main.adoc' from Maven build [${MAIN_ADOC_VALUE}]" @@ -93,7 +93,7 @@ function retrieve_doc_properties() { -Dexec.args="\${${WHITELIST_PROPERTY}}" \ org.codehaus.mojo:exec-maven-plugin:1.3.1:exec \ -P docs \ - -pl docs) + -pl docs | tail -1 ) echo "Extracted '${WHITELIST_PROPERTY}' from Maven build [${WHITELISTED_BRANCHES_VALUE}]" }