minor tweaks
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Fri, 31 Jan 2014 09:35:28 +0000 (10:35 +0100)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Fri, 31 Jan 2014 09:35:28 +0000 (10:35 +0100)
lbuild-nightly.sh

index 7b6d7e2..838f045 100755 (executable)
@@ -146,8 +146,8 @@ function pretty_duration () {
 function failure() {
     set -x
     # early stage ? - let's not create /build/@PLDISTRO@
-    if test -z "$WEBLOG" ; then
-       WEBHOST=$(hostname)
+    if  [ -z "$WEBLOG" ] ; then
+       WEBHOST=localhost
        WEBPATH=/tmp
        WEBBASE=/tmp/lbuild-early-$(date +%Y-%m-%d)
        WEBLOG=/tmp/lbuild-early-$(date +%Y-%m-%d).log.txt
@@ -175,8 +175,8 @@ function failure() {
 function success () {
     set -x
     # early stage ? - let's not create /build/@PLDISTRO@
-    if test -z "$WEBLOG" ; then
-       WEBHOST=$(hostname)
+    if [ -z "$WEBLOG" ] ; then
+       WEBHOST=localhost
        WEBPATH=/tmp
        WEBLOG=/tmp/lbuild-early-$(date +%Y-%m-%d).log.txt
     fi