From: Richard W.M. Jones Date: Tue, 7 Dec 2010 16:26:55 +0000 (+0000) Subject: autobuild: Factor out HOSTNAME variable. X-Git-Tag: 3.2~5 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=75c179dbaaa744c493e5e02bdcfbfc874e25766b;p=febootstrap.git autobuild: Factor out HOSTNAME variable. --- diff --git a/autobuild.sh b/autobuild.sh index 3eefc7c..4dc5828 100755 --- a/autobuild.sh +++ b/autobuild.sh @@ -2,18 +2,19 @@ PROJECT=febootstrap MAILTO=libguestfs@redhat.com +HOSTNAME="$(hostname -s)" #---------------------------------------------------------------------- # Helper functions. failed () { - mail -s "$(hostname -s) $PROJECT FAILED $1 $gitsha" $MAILTO < local-log + mail -s "$HOSTNAME $PROJECT FAILED $1 $gitsha" $MAILTO < local-log } ok () { - mail -s "$(hostname -s) $PROJECT success $gitsha" $MAILTO < local-log + mail -s "$HOSTNAME $PROJECT success $gitsha" $MAILTO < local-log } #---------------------------------------------------------------------- @@ -25,7 +26,7 @@ rm -f local-log cat > local-log <