You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by da...@apache.org on 2019/12/18 07:52:29 UTC

[isis] 07/25: ISIS-2062: improves build-site.sh script

This is an automated email from the ASF dual-hosted git repository.

danhaywood pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/isis.git

commit 57acef7ac2014bc338a51b35f6e64dc784d53bf9
Author: danhaywood <da...@haywood-associates.co.uk>
AuthorDate: Fri Dec 13 17:53:26 2019 +0000

    ISIS-2062: improves build-site.sh script
---
 scripts/ci/_adoc-antora.sh | 3 +++
 scripts/ci/build-site.sh   | 1 +
 2 files changed, 4 insertions(+)

diff --git a/scripts/ci/_adoc-antora.sh b/scripts/ci/_adoc-antora.sh
index 1857053..ba41054 100644
--- a/scripts/ci/_adoc-antora.sh
+++ b/scripts/ci/_adoc-antora.sh
@@ -7,6 +7,9 @@ if [ -z "$PROJECT_ROOT_PATH" ]; then
 fi
 
 SITE_CONFIG=$1
+if [ -z "$SITE_CONFIG" ]; then
+  SITE_CONFIG=site.yml
+fi
 
 if [ -z "$REVISION" ]; then
   if [ ! -z "$SHARED_VARS_FILE" ] && [ -f "$SHARED_VARS_FILE" ]; then
diff --git a/scripts/ci/build-site.sh b/scripts/ci/build-site.sh
index 6eb2645..74facc8 100644
--- a/scripts/ci/build-site.sh
+++ b/scripts/ci/build-site.sh
@@ -16,6 +16,7 @@ bash $SCRIPT_DIR/_adoc-gen-config.sh
 # check if anything had not been sync'd
 WC=$(git status --porcelain | wc -l)
 if [ "$WC" -ne "0" ]; then
+  git status --porcelain
   echo "Some examples are out of date; run sync-examples.sh and commit, then try again" >&2
   exit 1
 fi