You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@incubator.apache.org by se...@apache.org on 2023/03/30 10:52:22 UTC

[incubator] branch master updated: Use fatal consistently

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 936c290e8 Use fatal consistently
936c290e8 is described below

commit 936c290e8b9751a19b6a6068bf574f1d6d2d1f38
Author: Sebb <se...@apache.org>
AuthorDate: Thu Mar 30 11:52:17 2023 +0100

    Use fatal consistently
---
 bake.sh | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/bake.sh b/bake.sh
index 4282fec6b..5c79cd47d 100755
--- a/bake.sh
+++ b/bake.sh
@@ -5,22 +5,21 @@ function fatal() {
     exit 1
 }
 
-SUCCESS_FILE=$WORKDIR/.htaccess
 if [ -z ${JBAKE_HOME} ]
 then
-  fatal "Missing JBAKE_HOME variable" >&2
+  fatal "Missing JBAKE_HOME variable"
 fi
 
 if [ -z ${WORKDIR} ]
 then
-  fatal "Missing WORKDIR variable" >&2
+  fatal "Missing WORKDIR variable"
 fi
+SUCCESS_FILE=$WORKDIR/.htaccess
 
 export JBAKE_OPTS="-Djavax.xml.accessExternalDTD=http"
 ${JBAKE_HOME}/bin/jbake $@ || fatal "jbake failed, exiting"
 
 if [ ! -f $SUCCESS_FILE ]
 then
-    echo "Missing $SUCCESS_FILE , JBake build failed?" >&2
-    exit 1
+    fatal "Missing $SUCCESS_FILE , JBake build failed?"
 fi
\ No newline at end of file


---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@incubator.apache.org
For additional commands, e-mail: cvs-help@incubator.apache.org